-
Notifications
You must be signed in to change notification settings - Fork 331
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
Generalize EventStream methods to Property #23
Comments
Nom nom... Yes please. Here's what we currently have: Bacon.Property.prototype.switch = function(fn) {
var changes = this.changes()
return this.flatMap(function(value) {
return fn(value).takeUntil(changes)
})
}
Bacon.Property.prototype.flatMap = function() {
return Bacon.EventStream.prototype.flatMap.apply(this, arguments)
}
Bacon.Property.prototype.takeUntil = function() {
return Bacon.EventStream.prototype.takeUntil.apply(this, arguments)
} Not entirely sure that it works tho... |
|
Who wants to do this? Most work is writing tests, probably. Docs should be updated as well. |
Done with flatMap: 3957ea7 |
Done with switch, toEventStream: d307010 |
Readme updated in a6573d6 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Possibly add
The text was updated successfully, but these errors were encountered: