Can someone tell me what object this.onSubmit is referring to in the following code?
(function () {
var _d = vjo.dsf.EventDispatcher;
var _r = vjo.Registry;
function $1(p0) {
return function (event) {
return this.onSubmit(p0, event);
};
};
})();
I apologise if there is not enough context attached to this example.
In JavaScript, the value of
thisis dynamically set. So to know its value, you need to know how the function is being called/used.So the generic answer would be that
thisis referring to whatever was set as thethisvalue of the execution context.