Skip to content
GitLab
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
12868933
Commit
12868933
authored
13 years ago
by
Jacob Thornton
Browse files
Options
Download
Email Patches
Plain Diff
clean up dead elements in firefox (which is droping transitionEnd events :(
parent
4ef5a904
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
js/bootstrap-twipsy.js
+11
-4
js/bootstrap-twipsy.js
with
11 additions
and
4 deletions
+11
-4
js/bootstrap-twipsy.js
+
11
-
4
View file @
12868933
...
@@ -164,13 +164,20 @@
...
@@ -164,13 +164,20 @@
$tip
.
removeClass
(
'
in
'
)
$tip
.
removeClass
(
'
in
'
)
function
removeElement
()
{
function
removeWithAnimation
()
{
$tip
.
remove
()
var
timeout
=
setTimeout
(
function
()
{
$tip
.
off
(
$
.
support
.
transition
.
end
).
remove
()
},
500
)
$tip
.
one
(
$
.
support
.
transition
.
end
,
function
()
{
clearTimeout
(
timeout
)
$tip
.
remove
()
})
}
}
$
.
support
.
transition
&&
this
.
$tip
.
hasClass
(
'
fade
'
)
?
$
.
support
.
transition
&&
this
.
$tip
.
hasClass
(
'
fade
'
)
?
$tip
.
on
(
$
.
support
.
transition
.
end
,
removeElement
)
:
removeWithAnimation
(
)
:
remove
Element
()
$tip
.
remove
()
}
}
,
fixTitle
:
function
()
{
,
fixTitle
:
function
()
{
...
...
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