Switch to using useLodashMethod in build.js and allow non-underscore builds to include _.chain and _.findWhere.

Former-commit-id: 6c99623286059caf7a74dd4a19394da3562d7932
This commit is contained in:
John-David Dalton
2013-04-07 08:56:43 -07:00
parent e97e645eda
commit 93df901b71
2 changed files with 135 additions and 108 deletions

View File

@@ -90,10 +90,9 @@
};
/** List of all Lo-Dash methods */
var allMethods = _.functions(_)
.filter(function(methodName) { return !/^_/.test(methodName); })
.concat('chain')
.sort();
var allMethods = _.functions(_).filter(function(methodName) {
return !/^_/.test(methodName);
});
/** List of "Arrays" category methods */
var arraysMethods = [
@@ -143,6 +142,7 @@
'every',
'filter',
'find',
'findWhere',
'foldl',
'foldr',
'forEach',
@@ -316,7 +316,9 @@
];
/** List of methods used by Underscore */
var underscoreMethods = _.without.apply(_, [allMethods].concat(lodashOnlyMethods));
var underscoreMethods = _.without
.apply(_, [allMethods].concat(lodashOnlyMethods))
.concat('chain', 'findWhere');
/*--------------------------------------------------------------------------*/