kopia lustrzana https://github.com/miklobit/TiddlyWiki5
Fixed problem with insertBefore() method in fakedom
Was preventing refreshing of widget trees built against the fakedom.print-window-tiddler
rodzic
6c1489fc2f
commit
3bcaab513d
|
@ -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);
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue