Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
8debdf6c
Commit
8debdf6c
authored
4 years ago
by
XhmikosR
Browse files
Options
Download
Email Patches
Plain Diff
Remove a couple of variables used once
parent
94a5d87e
1 merge request
!31948
Examples/Floating-labels: fix bad behavior with autofill
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
js/src/alert.js
+1
-5
js/src/alert.js
js/src/collapse.js
+1
-2
js/src/collapse.js
with
2 additions
and
7 deletions
+2
-7
js/src/alert.js
+
1
-
5
View file @
8debdf6c
...
...
@@ -61,11 +61,7 @@ class Alert {
// Public
close
(
element
)
{
let
rootElement
=
this
.
_element
if
(
element
)
{
rootElement
=
this
.
_getRootElement
(
element
)
}
const
rootElement
=
element
?
this
.
_getRootElement
(
element
)
:
this
.
_element
const
customEvent
=
this
.
_triggerCloseEvent
(
rootElement
)
if
(
customEvent
===
null
||
customEvent
.
defaultPrevented
)
{
...
...
This diff is collapsed.
Click to expand it.
js/src/collapse.js
+
1
-
2
View file @
8debdf6c
...
...
@@ -287,8 +287,7 @@ class Collapse {
}
_getDimension
()
{
const
hasWidth
=
this
.
_element
.
classList
.
contains
(
WIDTH
)
return
hasWidth
?
WIDTH
:
HEIGHT
return
this
.
_element
.
classList
.
contains
(
WIDTH
)
?
WIDTH
:
HEIGHT
}
_getParent
()
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets