Update _.defer build dependencies.

Former-commit-id: 159f541373b01f259c9509e16c3fc0c2018e6d51
This commit is contained in:
John-David Dalton
2013-02-17 16:13:42 -08:00
parent 3ed9e0e905
commit 25e4231d7b
2 changed files with 9 additions and 5 deletions

View File

@@ -79,7 +79,7 @@
'countBy': ['forEach', 'identity', 'isEqual', 'keys'],
'debounce': [],
'defaults': ['isArray', 'forEach', 'forOwn'],
'defer': [],
'defer': ['bind'],
'delay': [],
'difference': ['indexOf'],
'escape': [],
@@ -1526,8 +1526,8 @@
useUnderscoreClone = methods.indexOf('clone') < 0;
}
// update dependencies
if (isModern || isUnderscore) {
dependencyMap.reduceRight = _.without(dependencyMap.reduceRight, 'isEqual', 'isString');
if (isLegacy) {
dependencyMap.defer = _.without(dependencyMap.defer, 'bind');
}
if (isUnderscore) {
dependencyMap.contains = _.without(dependencyMap.contains, 'isString');
@@ -1555,6 +1555,9 @@
dependencyMap.clone = _.without(dependencyMap.clone, 'forEach', 'forOwn');
}
}
if (isModern || isUnderscore) {
dependencyMap.reduceRight = _.without(dependencyMap.reduceRight, 'isEqual', 'isString');
}
// add method names explicitly
if (includeMethods.length) {