mirror of https://github.com/xwiki-labs/cryptpad
hyperjson.js : jshint complains about var index in for loop
This commit is contained in:
parent
0fbbb51f7f
commit
f6c848385f
|
@ -81,7 +81,8 @@ define([], function () {
|
||||||
|
|
||||||
// third element of the array is an array of child nodes
|
// third element of the array is an array of child nodes
|
||||||
var children = [];
|
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]));
|
children.push(DOM2HyperJSON(el.childNodes[i]));
|
||||||
}
|
}
|
||||||
result.push(children);
|
result.push(children);
|
||||||
|
|
Loading…
Reference in New Issue