I have a ton of JavaScript from the start with function calls written as follows:
THING.someFunction.call(THING);
It seems to me that this should always be equivalent:
THING.someFunction();
Are these two calls always equivalent? What about older javascript versions?
It seems to me that the purpose of the second THING is that the first line of code is to set the context ( this ) inside someFunction . But the context inside this function should be THING by default, right?
To be clear, THING is defined like this:
var THING = function () {
source share