mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-01-07 17:53:26 -08:00
Fixed problem with insertBefore() method in fakedom
Was preventing refreshing of widget trees built against the fakedom.
This commit is contained in:
parent
6c1489fc2f
commit
3bcaab513d
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue