Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bootstrap
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bootstrap
Commits
7f122be0
Commit
7f122be0
authored
Jun 10, 2014
by
fat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add special transitionend type to test event origin
fixes #13430
parent
9cdbf0e8
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
24 additions
and
25 deletions
+24
-25
js/alert.js
js/alert.js
+1
-1
js/carousel.js
js/carousel.js
+1
-1
js/collapse.js
js/collapse.js
+4
-15
js/modal.js
js/modal.js
+4
-4
js/tab.js
js/tab.js
+1
-1
js/tooltip.js
js/tooltip.js
+2
-2
js/transition.js
js/transition.js
+11
-1
No files found.
js/alert.js
View file @
7f122be0
...
...
@@ -54,7 +54,7 @@
$
.
support
.
transition
&&
$parent
.
hasClass
(
'
fade
'
)
?
$parent
.
one
(
$
.
support
.
transition
.
end
,
removeElement
)
.
one
(
'
bsTransitionEnd
'
,
removeElement
)
.
emulateTransitionEnd
(
150
)
:
removeElement
()
}
...
...
js/carousel.js
View file @
7f122be0
...
...
@@ -132,7 +132,7 @@
$active
.
addClass
(
direction
)
$next
.
addClass
(
direction
)
$active
.
one
(
$
.
support
.
transition
.
end
,
function
()
{
.
one
(
'
bsTransitionEnd
'
,
function
()
{
$next
.
removeClass
([
type
,
direction
].
join
(
'
'
)).
addClass
(
'
active
'
)
$active
.
removeClass
([
'
active
'
,
direction
].
join
(
'
'
))
that
.
sliding
=
false
...
...
js/collapse.js
View file @
7f122be0
...
...
@@ -61,18 +61,12 @@
this
.
transitioning
=
1
var
complete
=
function
(
e
)
{
if
(
e
&&
e
.
target
!=
this
.
$element
[
0
])
{
this
.
$element
.
one
(
$
.
support
.
transition
.
end
,
$
.
proxy
(
complete
,
this
))
return
}
var
complete
=
function
()
{
this
.
$element
.
removeClass
(
'
collapsing
'
)
.
addClass
(
'
collapse in
'
)[
dimension
](
''
)
this
.
transitioning
=
0
this
.
$element
.
off
(
$
.
support
.
transition
.
end
+
'
.bs.collapse
'
)
.
trigger
(
'
shown.bs.collapse
'
)
}
...
...
@@ -81,7 +75,7 @@
var
scrollSize
=
$
.
camelCase
([
'
scroll
'
,
dimension
].
join
(
'
-
'
))
this
.
$element
.
on
(
$
.
support
.
transition
.
end
+
'
.bs.collapse
'
,
$
.
proxy
(
complete
,
this
))
.
on
e
(
'
bsTransitionEnd
'
,
$
.
proxy
(
complete
,
this
))
.
emulateTransitionEnd
(
350
)[
dimension
](
this
.
$element
[
0
][
scrollSize
])
}
...
...
@@ -103,12 +97,7 @@
this
.
transitioning
=
1
var
complete
=
function
(
e
)
{
if
(
e
&&
e
.
target
!=
this
.
$element
[
0
])
{
this
.
$element
.
one
(
$
.
support
.
transition
.
end
,
$
.
proxy
(
complete
,
this
))
return
}
var
complete
=
function
()
{
this
.
transitioning
=
0
this
.
$element
.
trigger
(
'
hidden.bs.collapse
'
)
...
...
@@ -120,7 +109,7 @@
this
.
$element
[
dimension
](
0
)
.
one
(
$
.
support
.
transition
.
end
,
$
.
proxy
(
complete
,
this
))
.
one
(
'
bsTransitionEnd
'
,
$
.
proxy
(
complete
,
this
))
.
emulateTransitionEnd
(
350
)
}
...
...
js/modal.js
View file @
7f122be0
...
...
@@ -89,7 +89,7 @@
transition
?
that
.
$element
.
find
(
'
.modal-dialog
'
)
// wait for modal to slide in
.
one
(
$
.
support
.
transition
.
end
,
function
()
{
.
one
(
'
bsTransitionEnd
'
,
function
()
{
that
.
$element
.
trigger
(
'
focus
'
).
trigger
(
e
)
})
.
emulateTransitionEnd
(
300
)
:
...
...
@@ -122,7 +122,7 @@
$
.
support
.
transition
&&
this
.
$element
.
hasClass
(
'
fade
'
)
?
this
.
$element
.
one
(
$
.
support
.
transition
.
end
,
$
.
proxy
(
this
.
hideModal
,
this
))
.
one
(
'
bsTransitionEnd
'
,
$
.
proxy
(
this
.
hideModal
,
this
))
.
emulateTransitionEnd
(
300
)
:
this
.
hideModal
()
}
...
...
@@ -185,7 +185,7 @@
doAnimate
?
this
.
$backdrop
.
one
(
$
.
support
.
transition
.
end
,
callback
)
.
one
(
'
bsTransitionEnd
'
,
callback
)
.
emulateTransitionEnd
(
150
)
:
callback
()
...
...
@@ -198,7 +198,7 @@
}
$
.
support
.
transition
&&
this
.
$element
.
hasClass
(
'
fade
'
)
?
this
.
$backdrop
.
one
(
$
.
support
.
transition
.
end
,
callbackRemove
)
.
one
(
'
bsTransitionEnd
'
,
callbackRemove
)
.
emulateTransitionEnd
(
150
)
:
callbackRemove
()
...
...
js/tab.js
View file @
7f122be0
...
...
@@ -85,7 +85,7 @@
transition
?
$active
.
one
(
$
.
support
.
transition
.
end
,
next
)
.
one
(
'
bsTransitionEnd
'
,
next
)
.
emulateTransitionEnd
(
150
)
:
next
()
...
...
js/tooltip.js
View file @
7f122be0
...
...
@@ -210,7 +210,7 @@
$
.
support
.
transition
&&
this
.
$tip
.
hasClass
(
'
fade
'
)
?
$tip
.
one
(
$
.
support
.
transition
.
end
,
complete
)
.
one
(
'
bsTransitionEnd
'
,
complete
)
.
emulateTransitionEnd
(
150
)
:
complete
()
}
...
...
@@ -298,7 +298,7 @@
$
.
support
.
transition
&&
this
.
$tip
.
hasClass
(
'
fade
'
)
?
$tip
.
one
(
$
.
support
.
transition
.
end
,
complete
)
.
one
(
'
bsTransitionEnd
'
,
complete
)
.
emulateTransitionEnd
(
150
)
:
complete
()
...
...
js/transition.js
View file @
7f122be0
...
...
@@ -40,7 +40,7 @@
$
.
fn
.
emulateTransitionEnd
=
function
(
duration
)
{
var
called
=
false
var
$el
=
this
$
(
this
).
one
(
$
.
support
.
transition
.
end
,
function
()
{
called
=
true
})
$
(
this
).
one
(
'
bsTransitionEnd
'
,
function
()
{
called
=
true
})
var
callback
=
function
()
{
if
(
!
called
)
$
(
$el
).
trigger
(
$
.
support
.
transition
.
end
)
}
setTimeout
(
callback
,
duration
)
return
this
...
...
@@ -48,6 +48,16 @@
$
(
function
()
{
$
.
support
.
transition
=
transitionEnd
()
if
(
!
$
.
support
.
transition
)
return
$
.
event
.
special
.
bsTransitionEnd
=
{
bindType
:
$
.
support
.
transition
.
end
,
delegateType
:
$
.
support
.
transition
.
end
,
handle
:
function
(
e
)
{
if
(
$
(
e
.
target
).
is
(
this
))
return
e
.
handleObj
.
handler
.
apply
(
this
,
arguments
)
}
}
})
});
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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