Cleanup _.max and _.min.

Former-commit-id: 9688a11db3d90f6b0f4a7d6d13b4e1c6c0709870
This commit is contained in:
John-David Dalton
2012-11-06 20:22:58 -08:00
parent 265727c30f
commit 482e013887
4 changed files with 154 additions and 146 deletions

View File

@@ -1227,8 +1227,8 @@
// simplify DOM node check from `_.isEqual`
source = source.replace(/(if *\(className *!= *objectClass).+?noNodeClass[\s\S]+?{/, '$1) {');
// remove string collection callback definition from `_.max` and `_.min`
source = source.replace(/( *)if *\(!callback *&& *isString\(collection\)\)[\s\S]+?\n\1}\n/g, '');
// remove conditional `charCodeCallback` use from `_.max` and `_.min`
source = source.replace(/!callback *&& *isString\(collection\)[\s\S]+?: */g, '');
// remove unused features from `createBound`
if (buildMethods.indexOf('partial') == -1) {