by japsu · 13y ago · 0 comments
https://github.com/pyykkis/todomvc/blob/bacon-transparency-r...
More about event delegation here: 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.