Simplify arrays iterator options.

Former-commit-id: 7ea81c03f791615bcfec24d8574162c190d49c7d
This commit is contained in:
John-David Dalton
2013-05-03 08:51:10 -07:00
parent bdac8974d8
commit 8781053dbe

View File

@@ -585,7 +585,6 @@
'while (++argsIndex < argsLength) {\n' +
' iterable = args[argsIndex];\n' +
' if (iterable && objectTypes[typeof iterable]) {',
'arrays': false,
'loop': "if (typeof result[index] == 'undefined') result[index] = iterable[index]",
'bottom': ' }\n}'
};
@@ -759,7 +758,7 @@
'support': support,
// iterator options
'arrays': 'isArray(iterable)',
'arrays': '',
'bottom': '',
'init': 'iterable',
'loop': '',
@@ -989,8 +988,7 @@
'args': 'object',
'init': '[]',
'top': 'if (!(objectTypes[typeof object])) return result',
'loop': 'result.push(index)',
'arrays': false
'loop': 'result.push(index)'
});
/**