Closed thomasstevens89 closed 10 years ago
I've got a working demo going successfully and finally got my head around the Bacon streams.
I did have to change https://github.com/ProLoser/AngularJS-ORM/blob/master/modules/Objects.coffee#L10 from upStream.merge( @upStream ) to upStream.plug( @upStream ) though.
upStream.merge( @upStream )
upStream.plug( @upStream )
I think its something to do with event listeners .onValue(f) defined before the merge() occurs not receiving events from the newly merged bus. Instead .plug() seems to push the events from one bus to the other.
.onValue(f)
merge()
.plug()
Does that make sense? Or am I completely off?
I've got a working demo going successfully and finally got my head around the Bacon streams.
I did have to change https://github.com/ProLoser/AngularJS-ORM/blob/master/modules/Objects.coffee#L10 from
upStream.merge( @upStream )
toupStream.plug( @upStream )
though.I think its something to do with event listeners
.onValue(f)
defined before themerge()
occurs not receiving events from the newly merged bus. Instead.plug()
seems to push the events from one bus to the other.Does that make sense? Or am I completely off?