mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-14 20:57:49 +00:00
Remove unused iterator options references from build scripts.
Former-commit-id: 9610a20d8fea6778523d1d0a8b3e16b930534f20
This commit is contained in:
3
build.js
3
build.js
@@ -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',
|
||||||
|
|||||||
@@ -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',
|
||||||
@@ -344,11 +341,6 @@
|
|||||||
// minify property names as interpolated template variables
|
// minify property names as interpolated template variables
|
||||||
modified = modified.replace(RegExp('\\b' + property + '\\b', 'g'), minNames[index]);
|
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 {
|
else {
|
||||||
// minify property name strings
|
// minify property name strings
|
||||||
modified = modified.replace(RegExp("'" + property + "'", 'g'), "'" + minNames[index] + "'");
|
modified = modified.replace(RegExp("'" + property + "'", 'g'), "'" + minNames[index] + "'");
|
||||||
@@ -357,7 +349,6 @@
|
|||||||
modified = modified.replace(RegExp('\\.' + property + '\\b' , 'g'), '.' + minNames[index]);
|
modified = modified.replace(RegExp('\\.' + property + '\\b' , 'g'), '.' + minNames[index]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// replace with modified snippet
|
// replace with modified snippet
|
||||||
|
|||||||
Reference in New Issue
Block a user