Skip to content

Commit

Permalink
fixing a the global evaluation that makes uglifyjs compile wrong doT …
Browse files Browse the repository at this point in the history
…for safari exclusively
  • Loading branch information
davsket committed May 13, 2013
1 parent e513c5c commit 46f3f88
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
5 changes: 3 additions & 2 deletions doT.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,15 @@
},
template: undefined, //fn, compile template
compile: undefined //fn, for express
};
}, global;

if (typeof module !== 'undefined' && module.exports) {
module.exports = doT;
} else if (typeof define === 'function' && define.amd) {
define(function(){return doT;});
} else {
(function(){ return this || (0,eval)('this'); }()).doT = doT;
global = (function(){ return this || (0,eval)('this'); }());
global.doT = doT;
}

function encodeHTMLSource() {
Expand Down
8 changes: 1 addition & 7 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 46f3f88

Please sign in to comment.