We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I need to unsubscribe a model from a source added with model.apply.
model.apply
The unplug function returned by bus.plug isn't returned (https://github.com/baconjs/bacon.model/blob/master/src/bacon.model.coffee#L47), so I can't see how to use the model without leaking memory.
bus.plug
The text was updated successfully, but these errors were encountered:
My idea is to add an end condition to the source instead. For instance
model.apply(changes.takeUntil(end))
Would this suit your needs? Bus will take care of cleaning up the references on End event, so you don't have to worry about memory.
Sorry, something went wrong.
No branches or pull requests
I need to unsubscribe a model from a source added with
model.apply
.The unplug function returned by
bus.plug
isn't returned (https://github.com/baconjs/bacon.model/blob/master/src/bacon.model.coffee#L47), so I can't see how to use the model without leaking memory.The text was updated successfully, but these errors were encountered: