Skip to content

Commit cc34afc

Browse files
committed
Fix - error in JSROOT.clone
1 parent 0c79bee commit cc34afc

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

scripts/JSRootCore.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -278,10 +278,11 @@
278278
var tgt = [];
279279
map.obj.push(src);
280280
map.clones.push(tgt);
281-
if (typeof src[i] === 'object')
282-
tgt.push(JSROOT.clone(src[i], map));
283-
else
284-
tgt.push(src[i]);
281+
for (var i = 0; i < src.length; ++i)
282+
if (typeof src[i] === 'object')
283+
tgt.push(JSROOT.clone(src[i], map));
284+
else
285+
tgt.push(src[i]);
285286
return tgt;
286287
}
287288

0 commit comments

Comments
 (0)