From 034edd25b8ad06e7e997f96b5cc07459c6e87ff6 Mon Sep 17 00:00:00 2001 From: guy Date: Wed, 29 Nov 2017 14:22:55 +0800 Subject: [PATCH] update --- dist/fix/fix.compact.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/fix/fix.compact.js b/dist/fix/fix.compact.js index 837e51dec..b889edb02 100644 --- a/dist/fix/fix.compact.js +++ b/dist/fix/fix.compact.js @@ -80,11 +80,11 @@ "mapObject", "findKey", "pick", "omit", "tap"], function (name) { var old = BI[name] BI[name] = function (obj, fn) { - return old(obj, function (key, value) { + return typeof fn === "function" ? old(obj, function (key, value) { if (!(key in Fix.$$skipArray)) { return fn.apply(null, arguments); } - }); + }) : old.apply(null, arguments); } }); }()); \ No newline at end of file