From 6a4f06f3259e7ec72e4021d8462a388eb6460ffe Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sun, 28 Dec 2014 17:21:32 -0600 Subject: [PATCH] Make `_.omit` and `_.pick` use `bindCallback`. --- lodash.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lodash.js b/lodash.js index 1a51e85a2..4016af833 100644 --- a/lodash.js +++ b/lodash.js @@ -8843,7 +8843,7 @@ var props = arrayMap(baseFlatten(arguments, false, false, 1), String); return pickByArray(object, baseDifference(keysIn(object), props)); } - predicate = getCallback(predicate, thisArg, 3); + predicate = bindCallback(predicate, thisArg, 3); return pickByCallback(object, function(value, key, object) { return !predicate(value, key, object); }); @@ -8907,7 +8907,7 @@ return {}; } return typeof predicate == 'function' - ? pickByCallback(object, getCallback(predicate, thisArg, 3)) + ? pickByCallback(object, bindCallback(predicate, thisArg, 3)) : pickByArray(object, baseFlatten(arguments, false, false, 1)); }