How to create dynamic, instance based, object literals that are scoped
<p>After no help via Google and a post, this is my guess:</p>

<pre><code>var MC = {};
MC.o_p = function ( type ) {
    return {
        model  :  type,
        result :  'continue',
        page   :  {},
        args   :  {},
        server :  {},
        hash   :  localStorage.hash
    }
};
</code></pre>

<p>which I call like this</p>

<pre><code>var obj1 = MC.o_p( 'MUserTry' );
</code></pre>

<p>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.</p>

<p>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.</p>

<p><strong>Related</strong></p>

<p><a href="http://stackoverflow.com/questions/11729973/how-to-create-global-instance-based-objects-from-local-scope">How to create global, instance based objects from local scope?</a></p>
