Skip to content

Commit

Permalink
Fixes slider.play() leaving unstoppable setIntervals. Merges woocomme…
Browse files Browse the repository at this point in the history
  • Loading branch information
mattyza committed Jul 2, 2013
1 parent 19b8d84 commit f934b0a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions jquery.flexslider.js
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f934b0a

Please sign in to comment.