Fixed problem with insertBefore() method in fakedom

Was preventing refreshing of widget trees built against the fakedom.
print-window-tiddler
Jermolene 2013-12-20 15:29:01 +00:00
rodzic 6c1489fc2f
commit 3bcaab513d
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -66,6 +66,7 @@ TW_Element.prototype.insertBefore = function(node,nextSibling) {
var p = this.children.indexOf(nextSibling);
if(p !== -1) {
this.children.splice(p,0,node);
node.parentNode = this;
} else {
this.appendChild(node);
}