Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…expected in node env for #2380
  • Loading branch information...
commit 7deb6b2542e713a66e15b11415511551a3981d27 1 parent 0571ab3
@GCheung55 authored
View
2  Source/Browser/Browser.js
@@ -250,4 +250,4 @@ this.$exec = Browser.exec;
//</1.2compat>
-}).call(this);
+}).call(this.window || global);
View
2  Source/Class/Class.Extras.js
@@ -118,4 +118,4 @@ this.Options = new Class({
});
-}).call(this);
+}).call(this.window || global);
View
2  Source/Class/Class.js
@@ -112,4 +112,4 @@ Class.Mutators = {
}
};
-}).call(this);
+}).call(this.window || global);
View
2  Source/Core/Core.js
@@ -518,4 +518,4 @@ this.$unlink = function(object){
//</1.2compat>
-}).call(this);
+}).call(this.window || global);
View
2  Source/Element/Element.js
@@ -1058,4 +1058,4 @@ if (document.createElement('div').getAttributeNode('id')) Element.Properties.id
};
/*</IE>*/
-})();
+}).call(this.window || global);
View
2  Source/Fx/Fx.js
@@ -176,4 +176,4 @@ var pullInstance = function(fps){
}
};
-}).call(this);
+}).call(this.window || global);
View
2  Source/Request/Request.js
@@ -275,4 +275,4 @@ Element.implement({
});
-}).call(this);
+}).call(this.window || global);
View
2  Source/Types/DOMEvent.js
@@ -111,7 +111,7 @@ DOMEvent.defineKeys({
'46': 'delete', '13': 'enter'
});
-}).call(this);
+}).call(this.window || global);
/*<1.3compat>*/
var Event = DOMEvent;
View
2  Source/Types/Object.js
@@ -116,7 +116,7 @@ Object.extend({
});
-}).call(this);
+})();
//<1.2compat>
View
2  Source/Utilities/Swiff.js
@@ -110,4 +110,4 @@ Swiff.remote = function(obj, fn){
return eval(rs);
};
-}).call(this);
+}).call(this.window || global);
Please sign in to comment.
Something went wrong with that request. Please try again.