hyperjson.js : jshint complains about var index in for loop

This commit is contained in:
ansuz 2016-02-12 11:21:33 +01:00
parent 0fbbb51f7f
commit f6c848385f
1 changed files with 2 additions and 1 deletions

View File

@ -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);