Closed rwjblue closed 9 years ago
These methods are called by renderAndCleanup (from template-utils) when an AttrMorph is created in a block helpers template:
renderAndCleanup
template-utils
{{input type="checkbox" checked=checked}} {{#if checked}} <a href={{"http://google.com"}}>google.com</a> {{else}} <a href={{"http://yahoo.com"}}>yahoo.com</a> {{/if}}
In the above example, when checked is toggled the href AttrMorphs get .clear() and .destroy() called on them.
checked
href
.clear()
.destroy()
Lgtm
These methods are called by
renderAndCleanup
(fromtemplate-utils
) when an AttrMorph is created in a block helpers template:In the above example, when
checked
is toggled thehref
AttrMorphs get.clear()
and.destroy()
called on them.