Creating Static ( Like ) Variables - Best Practice
<p>Every time I need a static variable, I end up tacking it on as a property to the object that uses it and needs it to persist.</p>

<p>Particularly, this index here(<code>MT.MAOrb.startR.index</code>) I need to be static or hold it's value until the function is called again by a callback.  </p>

<p>Is using this form the best way to do this?</p>

<p><code>MT.MAOrb.startR.index</code></p>

<pre><code>/**
 ** MAOrb
 */


MT.MAOrb =
{
    pre : function() {
        var o_p = {
            model : 'MAOrb'
            };
        return o_p;
    },
    post : function( o_p ) {
        MT.MAOrb.startR( o_p );
    },
    startR: function( o_p ){
        var sky = document.getElementById( 'Ab1' );
        if( MT.MAOrb.startR.index === undefined ) {
            var size = Object.size( o_p );  
            console.log( 'size' + size );
            var index1 = MT.MAOrb.random( 0, size - 1 );
            console.log( 'index1' + index1 );
            MT.MAOrb.startR.index = index1;
            MT.MAOrb.startR.o_p = o_p;
        }else{ 
            MT.MAOrb.startR.index++; 
        }
        var image_element = MT.MAOrb.makeElement( MT.MAOrb.startR.o_p[ MT.MAOrb.startR.index ] );
        sky.appendChild( image_element );
        MT.MAOrb.moveLinear( image_element );
    },// ....more code here
};
</code></pre>
