mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-14 18:42:30 +03:00
calling pause on a slide should actually pause it - even when hovering
This commit is contained in:
Binary file not shown.
Vendored
+5
-2
@@ -37,8 +37,10 @@
|
|||||||
|
|
||||||
Carousel.prototype = {
|
Carousel.prototype = {
|
||||||
|
|
||||||
cycle: function () {
|
cycle: function (e) {
|
||||||
|
if (!e) this.paused = false
|
||||||
this.options.interval
|
this.options.interval
|
||||||
|
&& !this.paused
|
||||||
&& (this.interval = setInterval($.proxy(this.next, this), this.options.interval))
|
&& (this.interval = setInterval($.proxy(this.next, this), this.options.interval))
|
||||||
return this
|
return this
|
||||||
}
|
}
|
||||||
@@ -64,7 +66,8 @@
|
|||||||
return this.slide(pos > activePos ? 'next' : 'prev', $(children[pos]))
|
return this.slide(pos > activePos ? 'next' : 'prev', $(children[pos]))
|
||||||
}
|
}
|
||||||
|
|
||||||
, pause: function () {
|
, pause: function (e) {
|
||||||
|
if (!e) this.paused = true
|
||||||
clearInterval(this.interval)
|
clearInterval(this.interval)
|
||||||
this.interval = null
|
this.interval = null
|
||||||
return this
|
return this
|
||||||
|
|||||||
+7
-6
@@ -1,9 +1,10 @@
|
|||||||
{
|
{
|
||||||
"browser" : true,
|
"validthis": true,
|
||||||
"expr" : true,
|
|
||||||
"laxbreak" : true,
|
|
||||||
"boss" : true,
|
|
||||||
"asi" : true,
|
|
||||||
"laxcomma" : true,
|
"laxcomma" : true,
|
||||||
"validthis": true
|
"laxbreak" : true,
|
||||||
|
"browser" : true,
|
||||||
|
"debug" : true,
|
||||||
|
"boss" : true,
|
||||||
|
"expr" : true,
|
||||||
|
"asi" : true
|
||||||
}
|
}
|
||||||
Vendored
+5
-2
@@ -37,8 +37,10 @@
|
|||||||
|
|
||||||
Carousel.prototype = {
|
Carousel.prototype = {
|
||||||
|
|
||||||
cycle: function () {
|
cycle: function (e) {
|
||||||
|
if (!e) this.paused = false
|
||||||
this.options.interval
|
this.options.interval
|
||||||
|
&& !this.paused
|
||||||
&& (this.interval = setInterval($.proxy(this.next, this), this.options.interval))
|
&& (this.interval = setInterval($.proxy(this.next, this), this.options.interval))
|
||||||
return this
|
return this
|
||||||
}
|
}
|
||||||
@@ -64,7 +66,8 @@
|
|||||||
return this.slide(pos > activePos ? 'next' : 'prev', $(children[pos]))
|
return this.slide(pos > activePos ? 'next' : 'prev', $(children[pos]))
|
||||||
}
|
}
|
||||||
|
|
||||||
, pause: function () {
|
, pause: function (e) {
|
||||||
|
if (!e) this.paused = true
|
||||||
clearInterval(this.interval)
|
clearInterval(this.interval)
|
||||||
this.interval = null
|
this.interval = null
|
||||||
return this
|
return this
|
||||||
|
|||||||
Reference in New Issue
Block a user