Revert 'use strict' for compiled templates

This commit is contained in:
Patrick Steele-Idem 2015-05-27 11:47:54 -06:00
parent 75817c2e25
commit 9c0290b3c9
5 changed files with 3 additions and 5 deletions

View File

@ -492,7 +492,9 @@ TemplateBuilder.prototype = {
params = ['out'];
}
out.append('"use strict";\n');
// Don't use "use strict" in compiled templates since it
// could break backwards compatibility.
// out.append('"use strict";\n');
out.append('function create(__helpers) {\n');
//Write out the static variables

View File

@ -1,4 +1,3 @@
"use strict";
function create(__helpers) {
var str = __helpers.s,
empty = __helpers.e,

View File

@ -1,4 +1,3 @@
"use strict";
function create(__helpers) {
var str = __helpers.s,
empty = __helpers.e,

View File

@ -1,4 +1,3 @@
"use strict";
function create(__helpers) {
var str = __helpers.s,
empty = __helpers.e,

View File

@ -1,4 +1,3 @@
"use strict";
function create(__helpers) {
var str = __helpers.s,
empty = __helpers.e,