1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-25 23:03:15 +00:00

Fixed problem with insertBefore() method in fakedom

Was preventing refreshing of widget trees built against the fakedom.
This commit is contained in:
Jermolene 2013-12-20 15:29:01 +00:00
parent 6c1489fc2f
commit 3bcaab513d

View File

@ -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);
}