mirror of
https://github.com/twbs/bootstrap.git
synced 2024-11-29 11:24:18 +01:00
only trigger $.support.transition.end when it exists
This commit is contained in:
parent
3a751a63d4
commit
ebc1fe907d
2
docs/assets/js/bootstrap-carousel.js
vendored
2
docs/assets/js/bootstrap-carousel.js
vendored
@ -68,7 +68,7 @@
|
|||||||
|
|
||||||
, pause: function (e) {
|
, pause: function (e) {
|
||||||
if (!e) this.paused = true
|
if (!e) this.paused = true
|
||||||
if (this.$element.find('.next, .prev')) {
|
if (this.$element.find('.next, .prev') && $.support.transition.end) {
|
||||||
this.$element.trigger($.support.transition.end)
|
this.$element.trigger($.support.transition.end)
|
||||||
this.cycle()
|
this.cycle()
|
||||||
}
|
}
|
||||||
|
2
docs/assets/js/bootstrap.js
vendored
2
docs/assets/js/bootstrap.js
vendored
@ -312,7 +312,7 @@
|
|||||||
|
|
||||||
, pause: function (e) {
|
, pause: function (e) {
|
||||||
if (!e) this.paused = true
|
if (!e) this.paused = true
|
||||||
if (this.$element.find('.next, .prev')) {
|
if (this.$element.find('.next, .prev') && $.support.transition.end) {
|
||||||
this.$element.trigger($.support.transition.end)
|
this.$element.trigger($.support.transition.end)
|
||||||
this.cycle()
|
this.cycle()
|
||||||
}
|
}
|
||||||
|
2
docs/assets/js/bootstrap.min.js
vendored
2
docs/assets/js/bootstrap.min.js
vendored
File diff suppressed because one or more lines are too long
2
js/bootstrap-carousel.js
vendored
2
js/bootstrap-carousel.js
vendored
@ -68,7 +68,7 @@
|
|||||||
|
|
||||||
, pause: function (e) {
|
, pause: function (e) {
|
||||||
if (!e) this.paused = true
|
if (!e) this.paused = true
|
||||||
if (this.$element.find('.next, .prev')) {
|
if (this.$element.find('.next, .prev') && $.support.transition.end) {
|
||||||
this.$element.trigger($.support.transition.end)
|
this.$element.trigger($.support.transition.end)
|
||||||
this.cycle()
|
this.cycle()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user