mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 17:47:49 +00:00
Templates should not reference _.escape if "escape" delimiters are not used. [closes #484]
This commit is contained in:
5
dist/lodash.underscore.js
vendored
5
dist/lodash.underscore.js
vendored
@@ -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 +
|
||||
|
||||
Reference in New Issue
Block a user