diff options
| author | Andreas Cederström <[email protected]> | 2012-02-17 13:31:36 +0100 |
|---|---|---|
| committer | Andreas Cederström <[email protected]> | 2012-02-17 13:31:36 +0100 |
| commit | 1e6d386b8df2d7235b23a96ddd0489c1ab2650dc (patch) | |
| tree | 00a0032fdf582d39da1d1609bf40f9e4b90d464e /js/bootstrap-carousel.js | |
| parent | 60826077e7384e548c44c26531e7ae94e12fbcf4 (diff) | |
| parent | 091622644a0c619e1afbb21041c141da30df76b7 (diff) | |
| download | bootstrap-1e6d386b8df2d7235b23a96ddd0489c1ab2650dc.tar.xz bootstrap-1e6d386b8df2d7235b23a96ddd0489c1ab2650dc.zip | |
Keep origin in track
Diffstat (limited to 'js/bootstrap-carousel.js')
| -rw-r--r-- | js/bootstrap-carousel.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/js/bootstrap-carousel.js b/js/bootstrap-carousel.js index 2f47edb8d..bad4f46f4 100644 --- a/js/bootstrap-carousel.js +++ b/js/bootstrap-carousel.js @@ -61,6 +61,7 @@ , pause: function () { clearInterval(this.interval) + this.interval = null return this } @@ -82,6 +83,8 @@ , fallback = type == 'next' ? 'first' : 'last' , that = this + if (!$next.length) return + this.sliding = true isCycling && this.pause() @@ -151,4 +154,4 @@ }) }) -}( window.jQuery ) +}( window.jQuery );
\ No newline at end of file |
