Add lodash.prototype methods that return non-wrapped values.

Former-commit-id: b7ecb8c91ec9647827a80a297b966639c6580ef0
This commit is contained in:
John-David Dalton
2012-11-19 23:02:35 -08:00
parent 9d4618a223
commit bd4bff3b6b
5 changed files with 107 additions and 41 deletions

View File

@@ -124,7 +124,7 @@
'memoize': [],
'merge': ['forOwn', 'isArray', 'isPlainObject'],
'min': ['forEach', 'isArray', 'isString'],
'mixin': ['forEach', 'functions'],
'mixin': ['filter', 'forEach', 'functions'],
'noConflict': [],
'object': [],
'omit': ['forIn', 'indexOf'],
@@ -1397,6 +1397,9 @@
});
});
// remove Lo-Dash specific `lodash.prototype` extensions
source = source.replace(/(?:\s*\/\/.*)*\n( *)forEach\(filter[\s\S]+?lodash\.[\s\S]+?\n\1}.+/, '');
// remove unneeded template related variables
source = removeVar(source, 'reComplexDelimiter');
source = removeVar(source, 'reEmptyStringLeading');