Commit 31e8a358 authored by Jacob Thornton's avatar Jacob Thornton
Browse files

check length so that pause, actually pauses

parent 2d3a0bab
Showing with 4 additions and 4 deletions
+4 -4
......@@ -68,7 +68,7 @@
, pause: function (e) {
if (!e) this.paused = true
if (this.$element.find('.next, .prev') && $.support.transition.end) {
if (this.$element.find('.next, .prev').length && $.support.transition.end) {
this.$element.trigger($.support.transition.end)
this.cycle()
}
......
......@@ -312,7 +312,7 @@
, pause: function (e) {
if (!e) this.paused = true
if (this.$element.find('.next, .prev') && $.support.transition.end) {
if (this.$element.find('.next, .prev').length && $.support.transition.end) {
this.$element.trigger($.support.transition.end)
this.cycle()
}
......
This diff is collapsed.
......@@ -68,7 +68,7 @@
, pause: function (e) {
if (!e) this.paused = true
if (this.$element.find('.next, .prev') && $.support.transition.end) {
if (this.$element.find('.next, .prev').length && $.support.transition.end) {
this.$element.trigger($.support.transition.end)
this.cycle()
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment