remove unused index variable in forEach

This commit is contained in:
Mike Frawley
2010-02-26 08:47:36 -06:00
parent c519889a45
commit d1ccc1e841

View File

@@ -63,7 +63,6 @@
// Handles objects implementing forEach, arrays, and raw objects.
// Delegates to JavaScript 1.6's native forEach if available.
var each = _.forEach = function(obj, iterator, context) {
var index = 0;
try {
if (nativeForEach && obj.forEach === nativeForEach) {
obj.forEach(iterator, context);