I'm not sure if this is possible or not, but I drop here a sample of what I would like to achieve:
(function() {
function A() {}
function B() {}
var funcs = /* how do I get both A and B programatically? */;
})();
Both A and B aren't accessible by accessing window and this inside of the self-invoked function.
I know I can add properties A and B to this inside the self-invoked function and this solves the issue, but I was wondering if there's a way to retrieve them with named functions.
Update
I believe that the issue is very clear: I wanted to know if I can get scoped named functions without explictly using the module pattern.
At the end of the day, I'm looking to validate that I'm missing nothing and there's no way to programatically obtain syntactically-scoped named functions.
AandBtofuncs?