Skip to content
This repository has been archived by the owner on Mar 7, 2018. It is now read-only.

Fix: calling set with same value twice breaks update #618

Closed
wants to merge 1 commit into from

Conversation

lukewestby
Copy link

When you push a value that is equal to the prior value, the call to clearInterval() never happens so further updates are continually overwritten by the interval that was never cleared. This allows for values that are equal to pass through and clear the previous interval.

When you push a value that is equal to the prior value when truncated to an integer, the call to `clearInterval()` never happens so further updates are continually overwritten by the interval that was never cleared. This allows for values that are equal to pass through and clear the previous interval.
@DeanCording DeanCording mentioned this pull request Feb 6, 2016
@lukewestby lukewestby closed this Jul 3, 2017
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.

1 participant