Carousel.prototype = {
- cycle: function () {
+ cycle: function (e) {
+ if (!e) this.paused = false
this.options.interval
+ && !this.paused
&& (this.interval = setInterval($.proxy(this.next, this), this.options.interval))
return this
}
return this.slide(pos > activePos ? 'next' : 'prev', $(children[pos]))
}
- , pause: function () {
+ , pause: function (e) {
+ if (!e) this.paused = true
clearInterval(this.interval)
this.interval = null
return this
{
- "browser" : true,
- "expr" : true,
+ "validthis": true,
+ "laxcomma" : true,
"laxbreak" : true,
+ "browser" : true,
+ "debug" : true,
"boss" : true,
- "asi" : true,
- "laxcomma" : true,
- "validthis": true
+ "expr" : true,
+ "asi" : true
}
\ No newline at end of file
Carousel.prototype = {
- cycle: function () {
+ cycle: function (e) {
+ if (!e) this.paused = false
this.options.interval
+ && !this.paused
&& (this.interval = setInterval($.proxy(this.next, this), this.options.interval))
return this
}
return this.slide(pos > activePos ? 'next' : 'prev', $(children[pos]))
}
- , pause: function () {
+ , pause: function (e) {
+ if (!e) this.paused = true
clearInterval(this.interval)
this.interval = null
return this