summaryrefslogtreecommitdiff
path: root/src/ws/node.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/ws/node.js')
-rw-r--r--src/ws/node.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ws/node.js b/src/ws/node.js
index dff7056..6346b16 100644
--- a/src/ws/node.js
+++ b/src/ws/node.js
@@ -1,5 +1,6 @@
/* -*- Mode: js2; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set et sw=2 ts=2: */
+'use strict';
function createId(boardid, nodeid)
{
@@ -86,8 +87,8 @@ Node.prototype.addChild = function(node, insertBeforeId)
node.parent = this;
- inserted = false;
- for(i = 0; i < this.children.length; ++i)
+ var inserted = false;
+ for(var i = 0; i < this.children.length; ++i)
{
if(this.children[i].id == insertBeforeId)
{