Merge pull request #348 from hx/master

Fix for _.template() HTML escaping when using noConflict() and minification.
This commit is contained in:
Jeremy Ashkenas
2011-10-27 14:33:57 -07:00

View File

@@ -899,8 +899,8 @@
.replace(/\n/g, '\\n')
.replace(/\t/g, '\\t')
+ "');}return __p.join('');";
var func = new Function('obj', tmpl);
return data ? func(data) : func;
var func = new Function('obj', '_', tmpl);
return data ? func(data, _) : function(data) { return func(data, _) };
};
// The OOP Wrapper