Ticket #6791: Templated.patch
| File Templated.patch, 0.9 kB (added by bill, 8 months ago) |
|---|
-
workspace/trunk/dijit/_Templated.js
69 69 node = dijit._Templated._createNodesFromText(this._stringRepl(cached))[0]; 70 70 }else{ 71 71 // if it's a node, all we have to do is clone it 72 node = cached.cloneNode(true); 72 if(cached.ownerDocument == dojo.doc){ 73 node = cached.cloneNode(true); 74 }else{ 75 node = dojo.doc.importNode(cached, true); 76 } 73 77 } 74 78 75 79 // recurse through the node, looking for, and attaching to, our … … 273 277 // summary: 274 278 // Attempts to create a set of nodes based on the structure of the passed text. 275 279 276 if(!tn ){280 if(!tn || tn.ownerDocument != dojo.doc){ 277 281 tn = dojo.doc.createElement("div"); 278 282 tn.style.display="none"; 279 283 dojo.body().appendChild(tn);