Skip to content

Commit

Permalink
merging in davsket:uglifyjsfix by @davsket
Browse files Browse the repository at this point in the history
  • Loading branch information
olado committed Sep 7, 2013
2 parents cecedd8 + 46f3f88 commit daf27a4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 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
9 changes: 5 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 daf27a4

Please sign in to comment.