Permalink
Browse files

minor byte saving

  • Loading branch information...
1 parent 48810ab commit 70bbf812b00de6e1da38947d2b224e21d44ae1d4 @tnhu committed Mar 11, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 jsface.js
View
@@ -65,9 +65,9 @@
}
if (iArray) {
- for (i = 0, len = collection.length; i < len; i++) {
+ for (i = 0, len = collection.length; i < len;) {
v = iString ? collection.charAt(i) : collection[i];
- if ((r = fn(v, i, collection)) === 1/0) { break; }
+ if ((r = fn(v, i++, collection)) === 1/0) { break; }
result.push(r);
}
} else {

0 comments on commit 70bbf81

Please sign in to comment.