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

fix(debounce): ensure debounce disposes source #107

Merged
merged 2 commits into from
Aug 11, 2017

Conversation

briancavalier
Copy link
Member

Ported from cujojs/most#472

It looks like there was also a bug in the DebounceSink constructor. It wasn't correct to use disposeBoth, since the DebounceSink instance is already the disposable that is being returned from run().

ppoliani added a commit to ppoliani/most that referenced this pull request Aug 11, 2017
briancavalier pushed a commit to cujojs/most that referenced this pull request Aug 11, 2017
* Dispose the source disposable

When disposing a debounce stream we also need to dispose the source disposable

* add a test case for debounce dispose

* drain the debounced stream in the test

* fix(debounce): assign source disposable directly to debounce disposable

Suggested by mostjs/core#107

* fix linting issue
@briancavalier briancavalier merged commit fcae8fa into master Aug 11, 2017
@briancavalier briancavalier deleted the fix-debounce-dispose branch August 11, 2017 22:08
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

3 participants