Permalink
Browse files

merging in davsket:uglifyjsfix by @davsket

  • Loading branch information...
2 parents cecedd8 + 46f3f88 commit daf27a4d673bf321d80634e12e65530aa4c67edb @olado committed Sep 7, 2013
Showing with 8 additions and 6 deletions.
  1. +3 −2 doT.js
  2. +5 −4 doT.min.js
View
@@ -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() {
View
Oops, something went wrong.

0 comments on commit daf27a4

Please sign in to comment.