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
8d34bc13
Commit
8d34bc13
authored
7 years ago
by
Johann-S
Committed by
XhmikosR
6 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Move transition end detection to dom/event.js instead of util.js
parent
fb465c47
5 merge requests
!31948
Examples/Floating-labels: fix bad behavior with autofill
,
!30064
test
,
!29779
Responsive sizing
,
!28882
fix custom-select-indicator in IE10
,
!28721
Hot test
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
js/src/util.js
+0
-40
js/src/util.js
with
0 additions
and
40 deletions
+0
-40
js/src/util.js
+
0
-
40
View file @
8d34bc13
...
@@ -22,46 +22,6 @@ function toType(obj) {
...
@@ -22,46 +22,6 @@ function toType(obj) {
return
{}.
toString
.
call
(
obj
).
match
(
/
\s([
a-z
]
+
)
/i
)[
1
].
toLowerCase
()
return
{}.
toString
.
call
(
obj
).
match
(
/
\s([
a-z
]
+
)
/i
)[
1
].
toLowerCase
()
}
}
function
getSpecialTransitionEndEvent
()
{
return
{
bindType
:
TRANSITION_END
,
delegateType
:
TRANSITION_END
,
handle
(
event
)
{
if
(
$
(
event
.
target
).
is
(
this
))
{
return
event
.
handleObj
.
handler
.
apply
(
this
,
arguments
)
// eslint-disable-line prefer-rest-params
}
return
undefined
// eslint-disable-line no-undefined
}
}
}
function
transitionEndEmulator
(
duration
)
{
let
called
=
false
$
(
this
).
one
(
Util
.
TRANSITION_END
,
()
=>
{
called
=
true
})
setTimeout
(()
=>
{
if
(
!
called
)
{
Util
.
triggerTransitionEnd
(
this
)
}
},
duration
)
return
this
}
function
setTransitionEndSupport
()
{
$
.
fn
.
emulateTransitionEnd
=
transitionEndEmulator
$
.
event
.
special
[
Util
.
TRANSITION_END
]
=
getSpecialTransitionEndEvent
()
}
/**
* --------------------------------------------------------------------------
* Public Util Api
* --------------------------------------------------------------------------
*/
const
Util
=
{
const
Util
=
{
TRANSITION_END
:
'
bsTransitionEnd
'
,
TRANSITION_END
:
'
bsTransitionEnd
'
,
...
...
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