Cleanup var names in lodash.js and continue to optimize for gzip.

Former-commit-id: 00d76bd7ab8b35d2b45237224662849e42d00bac
This commit is contained in:
John-David Dalton
2012-10-07 20:47:18 -07:00
parent 9c8e1f4706
commit fff8d5f07d
5 changed files with 163 additions and 162 deletions

View File

@@ -1035,7 +1035,7 @@
}
}
if (isLegacy) {
_.each(['isBindFast', 'isKeysFast', 'isStrictFast', 'nativeBind', 'nativeGetPrototypeOf', 'nativeIsArray', 'nativeKeys'], function(varName) {
_.each(['getPrototypeOf', 'isBindFast', 'isKeysFast', 'isStrictFast', 'nativeBind', 'nativeIsArray', 'nativeKeys'], function(varName) {
source = replaceVar(source, varName, 'false');
});
@@ -1428,7 +1428,7 @@
source = removeVar(source, 'nativeIsArray');
}
if (isRemoved(source, 'isPlainObject')) {
source = removeVar(source, 'nativeGetPrototypeOf');
source = removeVar(source, 'getPrototypeOf');
}
if (isRemoved(source, 'keys')) {
source = removeFunction(source, 'shimKeys');