From f6c848385fc7b3f0457289f3c679ebab3b22c153 Mon Sep 17 00:00:00 2001 From: ansuz Date: Fri, 12 Feb 2016 11:21:33 +0100 Subject: [PATCH] hyperjson.js : jshint complains about var index in for loop --- www/common/hyperjson.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www/common/hyperjson.js b/www/common/hyperjson.js index 7697daf4b..12eb9a4ac 100644 --- a/www/common/hyperjson.js +++ b/www/common/hyperjson.js @@ -81,7 +81,8 @@ define([], function () { // third element of the array is an array of child nodes var children = []; - for(var i = 0; i < el.childNodes.length; i++){ + var i = 0; + for(; i < el.childNodes.length; i++){ children.push(DOM2HyperJSON(el.childNodes[i])); } result.push(children);