Skip to content

Commit

Permalink
Change to use 'this.window || global' because the behavior is not as …
Browse files Browse the repository at this point in the history
…expected in node env for mootools#2380
  • Loading branch information
GCheung55 committed Jul 11, 2012
1 parent 0571ab3 commit 7deb6b2
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Source/Browser/Browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,4 +250,4 @@ this.$exec = Browser.exec;

//</1.2compat>

}).call(this);
}).call(this.window || global);
2 changes: 1 addition & 1 deletion Source/Class/Class.Extras.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,4 @@ this.Options = new Class({

});

}).call(this);
}).call(this.window || global);
2 changes: 1 addition & 1 deletion Source/Class/Class.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,4 @@ Class.Mutators = {
}
};

}).call(this);
}).call(this.window || global);
2 changes: 1 addition & 1 deletion Source/Core/Core.js
Original file line number Diff line number Diff line change
Expand Up @@ -518,4 +518,4 @@ this.$unlink = function(object){

//</1.2compat>

}).call(this);
}).call(this.window || global);
2 changes: 1 addition & 1 deletion Source/Element/Element.js
Original file line number Diff line number Diff line change
Expand Up @@ -1058,4 +1058,4 @@ if (document.createElement('div').getAttributeNode('id')) Element.Properties.id
};
/*</IE>*/

})();
}).call(this.window || global);
2 changes: 1 addition & 1 deletion Source/Fx/Fx.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,4 +176,4 @@ var pullInstance = function(fps){
}
};

}).call(this);
}).call(this.window || global);
2 changes: 1 addition & 1 deletion Source/Request/Request.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,4 +275,4 @@ Element.implement({

});

}).call(this);
}).call(this.window || global);
2 changes: 1 addition & 1 deletion Source/Types/DOMEvent.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ DOMEvent.defineKeys({
'46': 'delete', '13': 'enter'
});

}).call(this);
}).call(this.window || global);

/*<1.3compat>*/
var Event = DOMEvent;
Expand Down
2 changes: 1 addition & 1 deletion Source/Types/Object.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ Object.extend({

});

}).call(this);
})();

//<1.2compat>

Expand Down
2 changes: 1 addition & 1 deletion Source/Utilities/Swiff.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,4 @@ Swiff.remote = function(obj, fn){
return eval(rs);
};

}).call(this);
}).call(this.window || global);

0 comments on commit 7deb6b2

Please sign in to comment.