Templates should not reference _.escape if "escape" delimiters are not used. [closes #484]

This commit is contained in:
John-David Dalton
2014-02-20 22:31:42 -08:00
parent b79d03d9a4
commit 8a1d2b614a
8 changed files with 104 additions and 82 deletions

View File

@@ -4700,10 +4700,9 @@
source += "';\n";
if (!variable) {
variable = 'obj';
source = 'with (' + variable + ' || {}) {\n' + source + '\n}\n';
source = 'with (obj || {}) {\n' + source + '\n}\n';
}
source = 'function(' + variable + ') {\n' +
source = 'function(' + (variable || 'obj') + ') {\n' +
"var __t, __p = '', __j = Array.prototype.join;\n" +
"function print() { __p += __j.call(arguments, '') }\n" +
source +