Пример #1
0
 //We need to both parse it and remove it... if we dont then any behaviors setup on the template
 //will be created on the older nodes by the DomWalker. That is a problem
 //Also, be really careful. IF you replace a node in the DOM while you are walking the DOM, it will no longer know its Siblings... joy
 public void captureAndEmptyTemplateContents(jQuery rootTemplateNode)
 {
     templateAsString = rootTemplateNode.html();
     jQueryContext.J( rootTemplateNode ).empty();
     validTemplate = true;
 }