Skip to content

Commit

Permalink
Merge pull request #36 from jairodemorais/rhino
Browse files Browse the repository at this point in the history
Rhino compatible
  • Loading branch information
vybs committed May 18, 2012
2 parents a82d9f8 + bbc92b3 commit 76e825e
Show file tree
Hide file tree
Showing 7 changed files with 1,456 additions and 1,642 deletions.
10 changes: 8 additions & 2 deletions dist/dust-core-0.4.0.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@

var dust = {};

function getGlobal(){
return (function(){
return this.dust;
}).call(null);
}

(function(dust) {

dust.cache = {};
Expand Down Expand Up @@ -509,7 +515,7 @@ dust.escapeJs = function(s) {

if (typeof exports !== "undefined") {
dust.helpers = require("./dust-helpers").helpers;
if (typeof process !== "undefined" && typeof window === "undefined") {
if (typeof process !== "undefined") {
require('./server')(dust);
}
module.exports = dust;
Expand Down Expand Up @@ -564,4 +570,4 @@ var helpers = {

dust.helpers = helpers;

})(typeof exports !== 'undefined' ? exports : window.dust);
})(typeof exports !== 'undefined' ? exports : getGlobal());
Loading

0 comments on commit 76e825e

Please sign in to comment.