Higher level views built on reactive.
Note: This component is not compatible anymore with the latest reactive version.
$ component install component/view
$ component build
$ open examples/todo.html
Initialize a view with the given obj
/ el
.
function ItemView(item) {
View.call(this, item, tmpl.cloneNode(true));
}
Bind to an event with the given str
, and invoke method
:
this.bind('click .remove', 'remove')
this.bind('click .complete', 'complete')
this.bind('dblclick .info a', 'showDetails')
Unbind all listeners, all for a specific event, or a specific combination of event / selector.
view.unbind()
view.unbind('click')
view.unbind('click .remove')
view.unbind('click .details')
MIT