From 748f972f58e12e6b7b34191ebe6f7590358155ca Mon Sep 17 00:00:00 2001 From: Eric Lindvall Date: Wed, 12 Feb 2014 20:37:13 -0800 Subject: [PATCH] Fix bug in Element.insertBefore() --- src/dom/node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dom/node.js b/src/dom/node.js index f5702ada..1c424ad8 100644 --- a/src/dom/node.js +++ b/src/dom/node.js @@ -140,7 +140,7 @@ __extend__(Node.prototype, { } if(!refChild){ this.appendChild(newChild); - return this.newChild; + return newChild; } // test for exceptions