You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If that's true, what happens with templates that have no parent node? E.g:
varfrag=stache("{{foo}}");
Currently, can-view-live listens on the document fragment, so you'd have to do something like this to debug it:
varfrag=stache("{{foo}}")// this does not work currently, because DocumentFragment // does not implement the `can.getValueDependencies` symboldebug.logWhatChangesMe(frag);
Note: it's also possible to have lists without parent node (other than the document fragment itself)
{{#if foo}} {{#each items}} {{ this }} {{/each}} {{/if}}
The text was updated successfully, but these errors were encountered:
For a template like:
can-view-live listens to the parent node,
span
(for legacy reasons, jQuery ignored textNodes) but technically the binding appears inspan.firstChild
.This means, if you want to debug the template, you have to pass in the parent node, like:
Should we make it so you have to do this instead?
If that's true, what happens with templates that have no parent node? E.g:
Currently, can-view-live listens on the document fragment, so you'd have to do something like this to debug it:
Note: it's also possible to have lists without parent node (other than the document fragment itself)
The text was updated successfully, but these errors were encountered: