From 3bcaab513d0a67f9f7b296f87e22b924b593221b Mon Sep 17 00:00:00 2001 From: Jermolene Date: Fri, 20 Dec 2013 15:29:01 +0000 Subject: [PATCH] Fixed problem with insertBefore() method in fakedom Was preventing refreshing of widget trees built against the fakedom. --- core/modules/utils/fakedom.js | 1 + 1 file changed, 1 insertion(+) diff --git a/core/modules/utils/fakedom.js b/core/modules/utils/fakedom.js index 4763b0a4a..126a1b0af 100755 --- a/core/modules/utils/fakedom.js +++ b/core/modules/utils/fakedom.js @@ -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); }