Skip to content
This repository has been archived by the owner on Sep 20, 2018. It is now read-only.

Commit

Permalink
[fixed] default each thisArg to collection
Browse files Browse the repository at this point in the history
  • Loading branch information
jquense committed Dec 21, 2015
1 parent 6ee61e4 commit a21fb8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default function($){

each(cb, thisArg) {
var idx = -1, len = this.length;
while (++idx < len) cb.call(thisArg, this[idx], idx, this)
while (++idx < len) cb.call(thisArg || this, this[idx], idx, this)
return this
},

Expand Down

0 comments on commit a21fb8f

Please sign in to comment.