mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
Revert 'use strict' for compiled templates
This commit is contained in:
parent
75817c2e25
commit
9c0290b3c9
@ -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
|
||||
|
||||
@ -1,4 +1,3 @@
|
||||
"use strict";
|
||||
function create(__helpers) {
|
||||
var str = __helpers.s,
|
||||
empty = __helpers.e,
|
||||
|
||||
@ -1,4 +1,3 @@
|
||||
"use strict";
|
||||
function create(__helpers) {
|
||||
var str = __helpers.s,
|
||||
empty = __helpers.e,
|
||||
|
||||
@ -1,4 +1,3 @@
|
||||
"use strict";
|
||||
function create(__helpers) {
|
||||
var str = __helpers.s,
|
||||
empty = __helpers.e,
|
||||
|
||||
@ -1,4 +1,3 @@
|
||||
"use strict";
|
||||
function create(__helpers) {
|
||||
var str = __helpers.s,
|
||||
empty = __helpers.e,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user