Fix legacy include=defer build test.

Former-commit-id: 49d0598ad3a979796cd07b6819c0aa08642c93a1
This commit is contained in:
John-David Dalton
2013-05-19 00:37:40 -07:00
parent 39e123aaf4
commit 8da0141cac

View File

@@ -1862,6 +1862,12 @@
dependencyMap.toArray.push('isArray', 'map');
}
_.each(['debounce', 'throttle'], function(methodName) {
if (!useLodashMethod(methodName)) {
dependencyMap[methodName] = [];
}
});
_.each(['max', 'min'], function(methodName) {
if (!useLodashMethod(methodName)) {
dependencyMap[methodName] = _.without(dependencyMap[methodName], 'isArray', 'isString');
@@ -1997,7 +2003,7 @@
// replace `_.isPlainObject` with `shimIsPlainObject`
source = source.replace(
matchFunction(source, 'isPlainObject').replace(/[\s\S]+?var isPlainObject *= */, ''),
matchFunction(source, 'shimIsPlainObject').replace(/[\s\S]+?function shimIsPlainObject/, 'function')
matchFunction(source, 'shimIsPlainObject').replace(/[\s\S]+?function shimIsPlainObject/, 'function').replace(/\s*$/, '')
);
source = removeFunction(source, 'shimIsPlainObject');