After no help via Google and a post, this is my guess:
var MC = {};
MC.o_p = function ( type ) {
return {
model : type,
result : 'continue',
page : {},
args : {},
server : {},
hash : localStorage.hash
}
};
which I call like this
var obj1 = MC.o_p( 'MUserTry' );
Here the object o_p is is "scoped" to MC. You can create multiple instances via the call above. The string MUserTry is passed in as the variable type and set to the object property model.
Will this work? I'm taking a break from trial and error at the moment, but what I need is to be able to create object literals of a certain form with multiple instances.
Related
How to create global, instance based objects from local scope?