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