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
9d373d71
Commit
9d373d71
authored
7 years ago
by
Mr_Green
Committed by
Johann-S
7 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Use only transitionend event (#24962)
parent
af34799e
6 merge requests
!28721
Hot test
,
!27561
Adds font-weight-medium to font weight classes
,
!25494
web pack
,
!25326
Adjust examples
,
!23207
#22402 : modal: new autofocus & keyboardBtnNav options
,
!17021
v4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
js/src/util.js
+2
-15
js/src/util.js
with
2 additions
and
15 deletions
+2
-15
js/src/util.js
+
2
-
15
View file @
9d373d71
...
@@ -20,11 +20,6 @@ const Util = (($) => {
...
@@ -20,11 +20,6 @@ const Util = (($) => {
const
MAX_UID
=
1000000
const
MAX_UID
=
1000000
const
TransitionEndEvent
=
{
WebkitTransition
:
'
webkitTransitionEnd
'
,
transition
:
'
transitionend
'
}
// shoutout AngusCroll (https://goo.gl/pxwQGp)
// shoutout AngusCroll (https://goo.gl/pxwQGp)
function
toType
(
obj
)
{
function
toType
(
obj
)
{
return
{}.
toString
.
call
(
obj
).
match
(
/
\s([
a-zA-Z
]
+
)
/
)[
1
].
toLowerCase
()
return
{}.
toString
.
call
(
obj
).
match
(
/
\s([
a-zA-Z
]
+
)
/
)[
1
].
toLowerCase
()
...
@@ -48,17 +43,9 @@ const Util = (($) => {
...
@@ -48,17 +43,9 @@ const Util = (($) => {
return
false
return
false
}
}
const
el
=
document
.
createElement
(
'
bootstrap
'
)
return
{
end
:
'
transitionend
'
for
(
const
name
in
TransitionEndEvent
)
{
if
(
typeof
el
.
style
[
name
]
!==
'
undefined
'
)
{
return
{
end
:
TransitionEndEvent
[
name
]
}
}
}
}
return
false
}
}
function
transitionEndEmulator
(
duration
)
{
function
transitionEndEmulator
(
duration
)
{
...
...
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