Add _.parseInt.

Former-commit-id: 0c0f10af3dc50a4d1b684523f19d02e423d738f5
This commit is contained in:
John-David Dalton
2013-02-27 08:03:08 -08:00
parent ba795639b4
commit 999aae0a33
11 changed files with 328 additions and 209 deletions

View File

@@ -140,6 +140,7 @@
'omit': ['forIn', 'indexOf'],
'once': [],
'pairs': ['keys'],
'parseInt': ['isString'],
'partial': ['isFunction', 'isObject'],
'partialRight': ['isFunction', 'isObject'],
'pick': ['forIn', 'isObject'],
@@ -260,6 +261,7 @@
'forOwn',
'isPlainObject',
'merge',
'parseInt',
'partialRight',
'runInContext'
]));
@@ -2493,6 +2495,9 @@
if (isRemoved(source, 'keys')) {
source = removeFunction(source, 'shimKeys');
}
if (isRemoved(source, 'parseInt')) {
source = removeVar(source, 'nativeParseInt');
}
if (isRemoved(source, 'template')) {
// remove `templateSettings` assignment
source = source.replace(/(?:\n +\/\*[^*]*\*+(?:[^\/][^*]*\*+)*\/)?\n *lodash\.templateSettings[\s\S]+?};\n/, '');