Remove unused iterator options references from build scripts.

Former-commit-id: 9610a20d8fea6778523d1d0a8b3e16b930534f20
This commit is contained in:
John-David Dalton
2012-10-23 00:30:59 -07:00
parent 8329409c03
commit 974678f500
2 changed files with 5 additions and 17 deletions

View File

@@ -163,14 +163,11 @@
/** Used to inline `iteratorTemplate` */ /** Used to inline `iteratorTemplate` */
var iteratorOptions = [ var iteratorOptions = [
'args', 'args',
'array',
'arrayLoop', 'arrayLoop',
'bottom', 'bottom',
'firstArg', 'firstArg',
'hasDontEnumBug', 'hasDontEnumBug',
'isKeysFast', 'isKeysFast',
'loop',
'object',
'objectLoop', 'objectLoop',
'noArgsEnum', 'noArgsEnum',
'noCharByIndex', 'noCharByIndex',

View File

@@ -35,14 +35,11 @@
/** Used to minify `compileIterator` option properties */ /** Used to minify `compileIterator` option properties */
var iteratorOptions = [ var iteratorOptions = [
'args', 'args',
'array',
'arrayLoop', 'arrayLoop',
'bottom', 'bottom',
'firstArg', 'firstArg',
'hasDontEnumBug', 'hasDontEnumBug',
'isKeysFast', 'isKeysFast',
'loop',
'object',
'objectLoop', 'objectLoop',
'noArgsEnum', 'noArgsEnum',
'noCharByIndex', 'noCharByIndex',
@@ -345,17 +342,11 @@
modified = modified.replace(RegExp('\\b' + property + '\\b', 'g'), minNames[index]); modified = modified.replace(RegExp('\\b' + property + '\\b', 'g'), minNames[index]);
} }
else { else {
if (property == 'array' || property == 'object') { // minify property name strings
// minify "array" and "object" sub property names modified = modified.replace(RegExp("'" + property + "'", 'g'), "'" + minNames[index] + "'");
modified = modified.replace(RegExp("'" + property + "'( *[\\]:])", 'g'), "'" + minNames[index] + "'$1"); // minify property names in accessors
} if (isCreateIterator) {
else { 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]);
}
} }
} }
}); });