Skip to content

Commit daf27a4

Browse files
committed
merging in davsket:uglifyjsfix by @davsket
2 parents cecedd8 + 46f3f88 commit daf27a4

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

doT.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,15 @@
2424
},
2525
template: undefined, //fn, compile template
2626
compile: undefined //fn, for express
27-
};
27+
}, global;
2828

2929
if (typeof module !== 'undefined' && module.exports) {
3030
module.exports = doT;
3131
} else if (typeof define === 'function' && define.amd) {
3232
define(function(){return doT;});
3333
} else {
34-
(function(){ return this || (0,eval)('this'); }()).doT = doT;
34+
global = (function(){ return this || (0,eval)('this'); }());
35+
global.doT = doT;
3536
}
3637

3738
function encodeHTMLSource() {

doT.min.js

+5-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)