Ticket #5542: NodeList.patch
| File NodeList.patch, 0.6 kB (added by dante, 11 months ago) |
|---|
-
NodeList.js
422 422 }else{ 423 423 ta.appendChild(content); 424 424 } 425 var ct = ((position == "first")||(position == "after")) ? "lastChild" : "firstChild"; 425 var pos = (position ? position : "last"); 426 var ct = ((pos == "first")||(pos == "after")) ? "lastChild" : "firstChild"; 426 427 this.forEach(function(item){ 427 428 var tn = ta.cloneNode(true); 428 429 while(tn[ct]){ 429 d.place(tn[ct], item, pos ition);430 d.place(tn[ct], item, pos); 430 431 } 431 432 }); 432 433 return this; // dojo.NodeList