Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update files to not throw an error in "use strict" mode. #2379 #2380

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Change to use 'this.window || global' because the behavior is not as …
…expected in node env for #2380
  • Loading branch information
GCheung55 committed Jul 11, 2012
commit 7deb6b2542e713a66e15b11415511551a3981d27
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);