Skip to content

Commit

Permalink
IE...
Browse files Browse the repository at this point in the history
  • Loading branch information
olado committed Apr 22, 2012
1 parent 48603e9 commit e1a7b64
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion benchmarks/templating/doT.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
if (c.use || c.define) { if (c.use || c.define) {
var olddef = global.def; global.def = def || {}; // workaround minifiers var olddef = global.def; global.def = def || {}; // workaround minifiers
str = resolveDefs(c, tmpl, global.def); str = resolveDefs(c, tmpl, global.def);
if (olddef) global.def = olddef; else delete global.def; global.def = olddef;
} else str = tmpl; } else str = tmpl;


str = ("var out='" + ((c.strip) ? str.replace(/\s*<!\[CDATA\[\s*|\s*\]\]>\s*|[\r\n\t]|(\/\*[\s\S]*?\*\/)/g, ''): str) str = ("var out='" + ((c.strip) ? str.replace(/\s*<!\[CDATA\[\s*|\s*\]\]>\s*|[\r\n\t]|(\/\*[\s\S]*?\*\/)/g, ''): str)
Expand Down
2 changes: 1 addition & 1 deletion doT.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
if (c.use || c.define) { if (c.use || c.define) {
var olddef = global.def; global.def = def || {}; // workaround minifiers var olddef = global.def; global.def = def || {}; // workaround minifiers
str = resolveDefs(c, tmpl, global.def); str = resolveDefs(c, tmpl, global.def);
if (olddef) global.def = olddef; else delete global.def; global.def = olddef;
} else str = tmpl; } else str = tmpl;


str = ("var out='" + ((c.strip) ? str.replace(/\s*<!\[CDATA\[\s*|\s*\]\]>\s*|[\r\n\t]|(\/\*[\s\S]*?\*\/)/g, ''): str) str = ("var out='" + ((c.strip) ? str.replace(/\s*<!\[CDATA\[\s*|\s*\]\]>\s*|[\r\n\t]|(\/\*[\s\S]*?\*\/)/g, ''): str)
Expand Down
8 changes: 4 additions & 4 deletions doT.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e1a7b64

Please sign in to comment.