From 974678f50088925d09d6ad0f7f4030447468d51f Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Tue, 23 Oct 2012 00:30:59 -0700 Subject: [PATCH] Remove unused iterator options references from build scripts. Former-commit-id: 9610a20d8fea6778523d1d0a8b3e16b930534f20 --- build.js | 3 --- build/pre-compile.js | 19 +++++-------------- 2 files changed, 5 insertions(+), 17 deletions(-) diff --git a/build.js b/build.js index 6cb0bf46e..c73793cda 100755 --- a/build.js +++ b/build.js @@ -163,14 +163,11 @@ /** Used to inline `iteratorTemplate` */ var iteratorOptions = [ 'args', - 'array', 'arrayLoop', 'bottom', 'firstArg', 'hasDontEnumBug', 'isKeysFast', - 'loop', - 'object', 'objectLoop', 'noArgsEnum', 'noCharByIndex', diff --git a/build/pre-compile.js b/build/pre-compile.js index 8fcc4f3a4..db9c1012c 100644 --- a/build/pre-compile.js +++ b/build/pre-compile.js @@ -35,14 +35,11 @@ /** Used to minify `compileIterator` option properties */ var iteratorOptions = [ 'args', - 'array', 'arrayLoop', 'bottom', 'firstArg', 'hasDontEnumBug', 'isKeysFast', - 'loop', - 'object', 'objectLoop', 'noArgsEnum', 'noCharByIndex', @@ -345,17 +342,11 @@ modified = modified.replace(RegExp('\\b' + property + '\\b', 'g'), minNames[index]); } else { - if (property == 'array' || property == 'object') { - // minify "array" and "object" sub property names - modified = modified.replace(RegExp("'" + property + "'( *[\\]:])", 'g'), "'" + minNames[index] + "'$1"); - } - else { - // minify property name strings - modified = modified.replace(RegExp("'" + property + "'", 'g'), "'" + minNames[index] + "'"); - // minify property names in accessors - if (isCreateIterator) { - modified = modified.replace(RegExp('\\.' + property + '\\b' , 'g'), '.' + minNames[index]); - } + // minify property name strings + modified = modified.replace(RegExp("'" + property + "'", 'g'), "'" + minNames[index] + "'"); + // minify property names in accessors + if (isCreateIterator) { + modified = modified.replace(RegExp('\\.' + property + '\\b' , 'g'), '.' + minNames[index]); } } });