mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-19 11:51:23 +02:00
null out interval so that pause doesn't resume on next or prev
This commit is contained in:
Binary file not shown.
1
docs/assets/js/bootstrap-carousel.js
vendored
1
docs/assets/js/bootstrap-carousel.js
vendored
@@ -61,6 +61,7 @@
|
|||||||
|
|
||||||
, pause: function () {
|
, pause: function () {
|
||||||
clearInterval(this.interval)
|
clearInterval(this.interval)
|
||||||
|
this.interval = null
|
||||||
return this
|
return this
|
||||||
}
|
}
|
||||||
|
|
||||||
|
1
js/bootstrap-carousel.js
vendored
1
js/bootstrap-carousel.js
vendored
@@ -61,6 +61,7 @@
|
|||||||
|
|
||||||
, pause: function () {
|
, pause: function () {
|
||||||
clearInterval(this.interval)
|
clearInterval(this.interval)
|
||||||
|
this.interval = null
|
||||||
return this
|
return this
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user