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
270316f1
Commit
270316f1
authored
11 years ago
by
liuyl
Browse files
Options
Download
Email Patches
Plain Diff
fix transition end
parent
b1a1210f
1 merge request
!8774
fix transition end
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dist/js/bootstrap.js
+2
-2
dist/js/bootstrap.js
dist/js/bootstrap.min.js
+1
-1
dist/js/bootstrap.min.js
js/transition.js
+2
-2
js/transition.js
with
5 additions
and
5 deletions
+5
-5
dist/js/bootstrap.js
+
2
-
2
View file @
270316f1
...
@@ -50,8 +50,8 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
...
@@ -50,8 +50,8 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
// http://blog.alexmaccaw.com/css-transitions
// http://blog.alexmaccaw.com/css-transitions
$
.
fn
.
emulateTransitionEnd
=
function
(
duration
)
{
$
.
fn
.
emulateTransitionEnd
=
function
(
duration
)
{
var
called
=
false
,
$el
=
this
var
called
=
false
,
$el
=
this
$
(
this
).
one
(
'
webkitT
ransition
E
nd
'
,
function
()
{
called
=
true
})
$
(
this
).
one
(
$
.
support
.
t
ransition
.
e
nd
,
function
()
{
called
=
true
})
var
callback
=
function
()
{
if
(
!
called
)
$
(
$el
).
trigger
(
'
webkitT
ransition
E
nd
'
)
}
var
callback
=
function
()
{
if
(
!
called
)
$
(
$el
).
trigger
(
$
.
support
.
t
ransition
.
e
nd
)
}
setTimeout
(
callback
,
duration
)
setTimeout
(
callback
,
duration
)
return
this
return
this
}
}
...
...
This diff is collapsed.
Click to expand it.
dist/js/bootstrap.min.js
+
1
-
1
View file @
270316f1
This diff is collapsed.
Click to expand it.
js/transition.js
+
2
-
2
View file @
270316f1
...
@@ -43,8 +43,8 @@
...
@@ -43,8 +43,8 @@
// http://blog.alexmaccaw.com/css-transitions
// http://blog.alexmaccaw.com/css-transitions
$
.
fn
.
emulateTransitionEnd
=
function
(
duration
)
{
$
.
fn
.
emulateTransitionEnd
=
function
(
duration
)
{
var
called
=
false
,
$el
=
this
var
called
=
false
,
$el
=
this
$
(
this
).
one
(
'
webkitT
ransition
E
nd
'
,
function
()
{
called
=
true
})
$
(
this
).
one
(
$
.
support
.
t
ransition
.
e
nd
,
function
()
{
called
=
true
})
var
callback
=
function
()
{
if
(
!
called
)
$
(
$el
).
trigger
(
'
webkitT
ransition
E
nd
'
)
}
var
callback
=
function
()
{
if
(
!
called
)
$
(
$el
).
trigger
(
$
.
support
.
t
ransition
.
e
nd
)
}
setTimeout
(
callback
,
duration
)
setTimeout
(
callback
,
duration
)
return
this
return
this
}
}
...
...
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