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

Provide a way to cancel scheduled debounces #9

Closed
jamestalmage opened this issue Apr 1, 2016 · 3 comments
Closed

Provide a way to cancel scheduled debounces #9

jamestalmage opened this issue Apr 1, 2016 · 3 comments

Comments

@jamestalmage
Copy link

I think the wrapped function should have a clear method attached to clear any scheduled debounce:

var debounced = debounce(fn, 300);

debounced();
debounced();
debounced.clear();
@nathanbuchar
Copy link

This was fixed in #10, but still hasn't been pushed to npm :( I need this feature as well, but I don't want the overhead of loadash or underscore.

@nathanbuchar
Copy link

For the record, I'm still waiting for this to be published to npm. :\

@sindresorhus
Copy link
Owner

This was added in 1.0.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants