File: binding.coffee
Defined in: | template |
Method Summary
-
? Gunther.Template.prototype.on(event, handler)
Add an event handler Set up an event handler for DOM events, uses jQuery's
bind()
-
? Gunther.Template.prototype.haltedOn(event, handler)
A "halted" on, that has no propagation (and no default) Before the
handler
is called, thestopPropagation()
andpreventDefault()
are called on the event See {Gunther.Template::on} - ? Gunther.Template.prototype.show(model, properties, resolver) Show/hide an element based on a boolean property
- ? Gunther.Template.prototype.hide(model, properties, resolver) Hide/show an element based on a boolean property This is simply show() inverted See {Gunther.Template::hide}
Method Details
? Gunther.Template.prototype.on(event, handler) Source
Add an event handler
Set up an event handler for DOM events, uses jQuery's bind()
? Gunther.Template.prototype.haltedOn(event, handler) Source
A "halted" on, that has no propagation (and no default)
Before the handler
is called, the stopPropagation()
and
preventDefault()
are called on the event
See {Gunther.Template::on}
? Gunther.Template.prototype.show(model, properties, resolver) Source
Show/hide an element based on a boolean property
? Gunther.Template.prototype.hide(model, properties, resolver) Source
Hide/show an element based on a boolean property
This is simply show() inverted
See {Gunther.Template::hide}