From 7bab4817f2885e850b3bd6fa578d3c35de6e315c Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Mon, 17 Nov 2014 07:15:44 +0100 Subject: [PATCH] Tweak lazy `_.pluck` and `_.where` methods. --- lodash.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lodash.js b/lodash.js index 133b30f39..3416ba38d 100644 --- a/lodash.js +++ b/lodash.js @@ -10195,10 +10195,10 @@ // Add `LazyWrapper` methods for `_.pluck` and `_.where`. arrayEach(['pluck', 'where'], function (methodName, index) { var operationName = index ? 'filter' : 'map', - getCallback = index ? matches : property; + createCallback = index ? matches : property; LazyWrapper.prototype[methodName] = function(value) { - return this[operationName](getCallback(value)); + return this[operationName](createCallback(value)); }; });