If we have this setup:
if (typeof(A) === 'undefined')
A = {};
A.B = new function () {
....
this.C = function () {
....
}
}
what are some standard ways of accessing the C
function from the outermost context (scope) ? I do have access to js sources so I can modify them accordingly.
You should not use new function(){} . Reason: Deathmatch: Self Executing Anonymous Function -vs- "new function"
But anyway as you have not wrote this code, you are just editing an plugin file, so you can access C using A.B.C()