Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Fixed slider.play() leaving unstoppable setIntervals. #714

Closed
wants to merge 1 commit into from
Closed

Fixed slider.play() leaving unstoppable setIntervals. #714

wants to merge 1 commit into from

Conversation

akapa
Copy link

@akapa akapa commented Jun 5, 2013

If you call slider.play() more than once in a row, previous intervals are not cleared. Reference is lost to them, so they can never be stopped again and stack up. The fix calls clearInterval first if the slider is already playing.

If you call slider.play() more than once in a row, previous intervals are not cleared. Reference is lost to them, so they can never be stopped again and stack up. The fix calls clearInterval first if the slider is already playing.
@mattyza
Copy link
Member

mattyza commented Jul 2, 2013

Merged manually. Thank you! :)

@mattyza mattyza closed this Jul 2, 2013
@akapa akapa deleted the patch-1 branch July 2, 2013 11:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants