2 ms·
nice post. Could you go into more detail about the controller snippet? What are you doing after the "// listen to events on model".
by tharshan09 13y ago
nice post. Could you go into more detail about the controller snippet? What are you doing after the "// listen to events on model".
- tipiirai 13y agoWhen something happens on the topic object (it is expanded, collapsed or someone replies to it) an event is emitted. Here those events are caught and I can do my thing on that moment. It's similar to jQuery custom events, except that we use our own event system so we can get rid of the DOM specific features – such as the jQuery.Event object.