Cleanup pre-compile.js and build.js removing more unused vars missed by minifiers.

Former-commit-id: 198715b39ced1a33bd55109099af462ae96a7188
This commit is contained in:
John-David Dalton
2012-07-11 23:37:12 -04:00
parent 0dc88bb412
commit 1f3546a9f6
2 changed files with 79 additions and 59 deletions

View File

@@ -308,8 +308,8 @@
modified = modified.replace(RegExp('\\.(' + iteratorOptions.join('|') + ')\\b', 'g'), "['$1']");
if (isCreateIterator) {
// replace with modified snippet early and clip snippet so other arguments
// aren't minified
// replace with modified snippet early and clip snippet to the `factory`
// call so other arguments aren't minified
source = source.replace(snippet, modified);
snippet = modified = modified.replace(/factory\([\s\S]+$/, '');
}