Javascript registry for calling methods and objects
I want to have an object which can act as a registry for calling functions
on it.
So far, I have been thinking of something along these lines:
var registry = new Object();
registry.doStuff = function(){ /* */ };
Is there a better way ? What about adding objects ? Ideally, I'd like to
be able to add these at run time.
No comments:
Post a Comment