Skip to content

Commit

Permalink
Revert "Edited underscore.js via GitHub"
Browse files Browse the repository at this point in the history
This reverts commit 47fb3d7.
  • Loading branch information
jashkenas committed Jul 13, 2011
1 parent a6cba68 commit c1a5562
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions underscore.js
Original file line number Diff line number Diff line change
Expand Up @@ -387,8 +387,7 @@
return array[i] === item ? i : -1;
}
if (nativeIndexOf && array.indexOf === nativeIndexOf) return array.indexOf(item);
var o,i=0;
while( o = array[i++] ) if (o === item) return i-1;
for (i = 0, l = array.length; i < l; i++) if (array[i] === item) return i;
return -1;
};

Expand Down

0 comments on commit c1a5562

Please sign in to comment.