Fix typo in build.js.

Former-commit-id: d5710a62297b824465f29a43c28882865beec971
This commit is contained in:
John-David Dalton
2013-06-23 13:36:47 -07:00
parent 3f6116f28f
commit 1f84803b91

View File

@@ -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)