Remove unneeded Closure Compiler export around the template string _.escape(__t) in pre-compile.js.

Former-commit-id: 812bd220cd3baca30a100f07e1d47cd6745a3602
This commit is contained in:
John-David Dalton
2012-06-03 20:36:31 -04:00
parent c1416bba39
commit 6ea4226680

View File

@@ -200,6 +200,9 @@
// http://code.google.com/closure/compiler/docs/api-tutorial3.html#export
source = source.replace(RegExp('\\.(' + propWhitelist.join('|') + ')\\b', 'g'), "['$1']");
// remove brackets from `_.escape(__t)` in `tokenizeEscape`
source = source.replace("_['escape'](__t)", '_.escape(__t)');
// remove whitespace from string literals
source = source.replace(/'(?:(?=(\\?))\1.)*?'/g, function(string) {
// avoids removing the '\n' of the `escapes` object