Skip to content

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.

3 participants