mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 23:57:49 +00:00
Allow natural multi-line code evaluation in templates.
By escaping `\r`, `\n`, and `\t` earlier, we can unescape them along with backslashes and single quotes allowing for the inclusion of single line comments and code without a terminating semicolon.
This commit is contained in:
@@ -1,6 +1,14 @@
|
||||
$(document).ready(function() {
|
||||
|
||||
module("Utility");
|
||||
var templateSettings = _.templateSettings;
|
||||
|
||||
module("Utility", {
|
||||
|
||||
teardown: function() {
|
||||
_.templateSettings = templateSettings;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
test("utility: noConflict", function() {
|
||||
var underscore = _.noConflict();
|
||||
|
||||
Reference in New Issue
Block a user