mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-13 12:27:49 +00:00
Fix typo in build.js.
Former-commit-id: 6722b5f9905108bdc25b12c857d1f0e4f47c2f7a
This commit is contained in:
8
build.js
8
build.js
@@ -2138,8 +2138,8 @@
|
|||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
// expand categories to methods
|
// expand categories to methods
|
||||||
_.each([includeMethods, minusMethods, plusMethods], function(methods) {
|
_.each([includeMethods, minusMethods, plusMethods], function(methodNames) {
|
||||||
var categories = _.intersection(methods, methodCategories);
|
var categories = _.intersection(methodNames, methodCategories);
|
||||||
categories.forEach(function(category) {
|
categories.forEach(function(category) {
|
||||||
var otherMethods = getMethodsByCategory(source, category);
|
var otherMethods = getMethodsByCategory(source, category);
|
||||||
|
|
||||||
@@ -2152,13 +2152,13 @@
|
|||||||
otherMethods.push('findWhere');
|
otherMethods.push('findWhere');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// limit category methods to those available for specific builds
|
// limit method names to those available for specific builds
|
||||||
if (isBackbone) {
|
if (isBackbone) {
|
||||||
otherMethods = _.intersection(methodNames, backboneDependencies);
|
otherMethods = _.intersection(methodNames, backboneDependencies);
|
||||||
} else if (isUnderscore) {
|
} else if (isUnderscore) {
|
||||||
otherMethods = _.intersection(methodNames, underscoreMethods);
|
otherMethods = _.intersection(methodNames, underscoreMethods);
|
||||||
}
|
}
|
||||||
push.apply(methods, otherMethods);
|
push.apply(methodNames, otherMethods);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user