Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add in single timeout implementation of debounce #1269

Merged
merged 2 commits into from Sep 7, 2013

Conversation

rhysbrettbowen
Copy link

@rhysbrettbowen rhysbrettbowen commented Aug 22, 2013

@jashkenas
Copy link
Owner

jashkenas commented Sep 4, 2013

Neat! How sure are you that this actually behaves the same way, including edge cases? (Our debounce tests are notoriously iffy.)

Anyone else taken a look over this and had thoughts?

@rhysbrettbowen
Copy link
Author

rhysbrettbowen commented Sep 4, 2013

One problem that is possible with this is if someone overrides the Date object.

I'm currently using it in our development application and haven't run in to any issues. It passes the underscore debounce test but as you say, it's not the most rigorous.

jashkenas added a commit that referenced this pull request Sep 7, 2013
add in single timeout implementation of debounce
@jashkenas jashkenas merged commit 19ab4e4 into jashkenas:master Sep 7, 2013
kritollm added a commit to kritollm/underscore that referenced this pull request Dec 5, 2020
jgonggrijp added a commit that referenced this pull request Dec 7, 2020
Reimplementing timer optimization  #1269
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants