Skip to content

Commit 8521f48

Browse files
committed
Revert "Calling this. Everywhere."
This reverts commit b43547b. It seems that .call(this) doesn't really solve our issues with JScript and it creates issues in environments such as NodeJS. Let's reiterate on a proper fix for ES5 strict at a later time.
1 parent 02041b1 commit 8521f48

File tree

10 files changed

+10
-10
lines changed

10 files changed

+10
-10
lines changed

Source/Browser/Browser.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -259,4 +259,4 @@ this.$exec = Browser.exec;
259259

260260
//</1.2compat>
261261

262-
}).call(this);
262+
})();

Source/Class/Class.Extras.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,4 +118,4 @@ this.Options = new Class({
118118

119119
});
120120

121-
}).call(this);
121+
})();

Source/Class/Class.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,4 +112,4 @@ Class.Mutators = {
112112
}
113113
};
114114

115-
}).call(this);
115+
})();

Source/Core/Core.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -508,4 +508,4 @@ this.$unlink = function(object){
508508

509509
//</1.2compat>
510510

511-
}).call(this);
511+
})();

Source/Element/Element.Dimensions.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ function getCompatElement(element){
241241
return (!doc.compatMode || doc.compatMode == 'CSS1Compat') ? doc.html : doc.body;
242242
}
243243

244-
}).call(this);
244+
})();
245245

246246
//aliases
247247
Element.alias({position: 'setPosition'}); //compatability

Source/Element/Element.Event.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,4 +172,4 @@ Element.Events = new Hash(Element.Events);
172172

173173
//</1.2compat>
174174

175-
}).call(this);
175+
})();

Source/Element/Element.Style.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,4 +180,4 @@ Element.ShortStyles = {margin: {}, padding: {}, border: {}, borderWidth: {}, bor
180180
Short.borderColor[bdc] = Short[bd][bdc] = All[bdc] = 'rgb(@, @, @)';
181181
});
182182

183-
}).call(this);
183+
})();

Source/Fx/Fx.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,4 +176,4 @@ var pullInstance = function(fps){
176176
}
177177
};
178178

179-
}).call(this);
179+
})();

Source/Utilities/JSON.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,4 @@ JSON.decode = function(string, secure){
7878
return eval('(' + string + ')');
7979
};
8080

81-
}).call(this);
81+
})();

Source/Utilities/Swiff.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,4 +110,4 @@ Swiff.remote = function(obj, fn){
110110
return eval(rs);
111111
};
112112

113-
}).call(this);
113+
})();

0 commit comments

Comments
 (0)