From 1f84803b9170fb58e5638647b4545ee2e6221dd0 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sun, 23 Jun 2013 13:36:47 -0700 Subject: [PATCH] Fix typo in build.js. Former-commit-id: d5710a62297b824465f29a43c28882865beec971 --- build.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/build.js b/build.js index 3f35674aa..75484ca0f 100755 --- a/build.js +++ b/build.js @@ -2050,11 +2050,6 @@ isGlobal = _.contains(exportsOptions, 'global'), isNode = _.contains(exportsOptions, 'node'); - // delete the `_.findWhere` dependency map to enable its alias mapping - if (!isUnderscore || isLodashMethod('findWhere')) { - delete dependencyMap.findWhere; - } - /*------------------------------------------------------------------------*/ var isExcluded = function() { @@ -2072,6 +2067,11 @@ return _.contains(methods, methodName); }; + // delete the `_.findWhere` dependency map to enable its alias mapping + if (!isUnderscore || isLodashMethod('findWhere')) { + delete dependencyMap.findWhere; + } + // methods to include in the build var includeMethods = options.reduce(function(accumulator, value) { return /^include=.*$/.test(value)