Use proper for loop in getField, fixes #103

some tools add custom functions to Array, which breaks for/in loops on array.
This commit is contained in:
Robin Lambertz 2014-10-17 18:28:38 +02:00
parent 06ea770355
commit b8ea176fb7

View file

@ -1180,7 +1180,7 @@ function sizeOfArray(value, typeArgs, rootNode) {
function getField(countField, rootNode) {
var countFieldArr = countField.split(".");
var count = rootNode;
for (var index in countFieldArr) {
for (var index = 0; index < countFieldArr.length; index++) {
count = count[countFieldArr[index]];
}
return count;