Browse files

Fixes slider.play() leaving unstoppable setIntervals. Merges #714.

  • Loading branch information...
1 parent 19b8d84 commit f934b0ad070f4d5744daf8ffb0707770c717371d @mattyza mattyza committed Jul 2, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 jquery.flexslider.js
View
1 jquery.flexslider.js
@@ -769,6 +769,7 @@
}
// SLIDESHOW:
slider.play = function() {
+ if (slider.playing) clearInterval(slider.animatedSlides);
slider.animatedSlides = slider.animatedSlides || setInterval(slider.animateSlides, slider.vars.slideshowSpeed);
slider.started = slider.playing = true;
// PAUSEPLAY:

0 comments on commit f934b0a

Please sign in to comment.