17. Events
on object.on(event, callback, [context]) // local
trigger object.trigger(event, [*args])
off object.off([event], [callback], [context])
суббота, 1 июня 13 г.
21. View
✓ tagName (‘div’, ‘ul’)
✓ attributes (hash)
✓ className (‘my-cls cls2’)
Wrap container
суббота, 1 июня 13 г.
22. View
✓ Insert template in DOM
✓ Bind events from `Events` attrs
✓ note: No logic
✓ note: this.$(‘.cls’) - local scope
✓ note: Auto stopListening on
remove()
суббота, 1 июня 13 г.