From a21fb8f7660bb370e92a32606f34db080d256aac Mon Sep 17 00:00:00 2001 From: jquense Date: Sun, 20 Dec 2015 20:21:51 -0500 Subject: [PATCH] [fixed] default each thisArg to collection --- src/common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common.js b/src/common.js index a915384..d741952 100644 --- a/src/common.js +++ b/src/common.js @@ -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 },