diff options
Diffstat (limited to 'src/ws')
-rw-r--r-- | src/ws/node.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ws/node.js b/src/ws/node.js index 6346b16..e659730 100644 --- a/src/ws/node.js +++ b/src/ws/node.js @@ -92,7 +92,7 @@ Node.prototype.addChild = function(node, insertBeforeId) { if(this.children[i].id == insertBeforeId) { - this.children.splice(i - 1, 0, node); + this.children.splice(i, 0, node); this.children_element.insertBefore(node.element, this.children_element.childNodes[i]); inserted = true; break; |