3 ms·
Have a look at pyykkis' implementation of TodoMVC using Bacon.js, Transparency and Backbone Models. I think he accomplishes just that. https://github.com/pyykk
by japsu 14y ago
Have a look at pyykkis' implementation of TodoMVC using Bacon.js, Transparency and Backbone Models. I think he accomplishes just that.
https://github.com/pyykkis/todomvc/blob/bacon-transparency-require/labs/dependency-examples/bacon_transparency_require/src/app.coffee https://github.com/pyykkis/todomvc/blob/bacon-transparency-r...
- asolove 14y agoThanks! That one file is really instructive.
- RoboTeddy 14y agoIt looks like events from newly added controls are captured here using asEventStream with jquery's event delegation. More about event delegation here: http://api.jquery.com/on/ http://api.jquery.com/on/ $('#container').asEventStream('click', '.someclass') If an element with someclass is ever added as a child of #container, clicks on it will fire events. This is true even if the someclass element is added after the asEventStream call.