Permalink
Browse files

Change to use 'this.window || global' because the behavior is not as …

…expected in node env for #2380
  • Loading branch information...
1 parent 0571ab3 commit 7deb6b2542e713a66e15b11415511551a3981d27 @GCheung55 committed Jul 11, 2012
@@ -250,4 +250,4 @@ this.$exec = Browser.exec;
//</1.2compat>
-}).call(this);
+}).call(this.window || global);
@@ -118,4 +118,4 @@ this.Options = new Class({
});
-}).call(this);
+}).call(this.window || global);
View
@@ -112,4 +112,4 @@ Class.Mutators = {
}
};
-}).call(this);
+}).call(this.window || global);
View
@@ -518,4 +518,4 @@ this.$unlink = function(object){
//</1.2compat>
-}).call(this);
+}).call(this.window || global);
@@ -1058,4 +1058,4 @@ if (document.createElement('div').getAttributeNode('id')) Element.Properties.id
};
/*</IE>*/
-})();
+}).call(this.window || global);
View
@@ -176,4 +176,4 @@ var pullInstance = function(fps){
}
};
-}).call(this);
+}).call(this.window || global);
@@ -275,4 +275,4 @@ Element.implement({
});
-}).call(this);
+}).call(this.window || global);
View
@@ -111,7 +111,7 @@ DOMEvent.defineKeys({
'46': 'delete', '13': 'enter'
});
-}).call(this);
+}).call(this.window || global);
/*<1.3compat>*/
var Event = DOMEvent;
View
@@ -116,7 +116,7 @@ Object.extend({
});
-}).call(this);
+})();
//<1.2compat>
@@ -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.