I am looking at code that appears to be declaring a function that would need to be called to run. This function is being declared within an anonymous function. Doesn't this mean that the function will be inaccessible to anything outside of this block?
(function () {
var _d = vjo.dsf.EventDispatcher;
var _r = vjo.Registry;
function $1(p0) {
return function (event) {
return this.onSubmit(p0, event);
};
};
})();
Why would someone do this?
I am not sure of the purpose/relevance of $ in this code.
$1is a valid identifier; they could have called itfunction bananas(p0)and it would be the same thing.ಠ_ಠis a valid identifier; see also: stackoverflow.com/questions/7451524/…ಠ_ಠused to be part of @NullUserException's display name :) (or was it someone else's?)ఠ_ఠin my display name.