Passing javascript object property
<p>How do you go about passing an objects properties in the follwoing situation:</p>

<pre><code>ObjectTest = function()
{
    this.var1= "3";    
    this.var2= "";
}
</code></pre>

<p>and the call</p>

<pre><code>    ObjectTest .prototype.allFriends = function() {

        function bindEvents() {
             //pass var1 here
        }
   }
</code></pre>

<p>Is there a way to pass the ObjectTest properties without passing them as properties of the bindEvents(). I'd prefer a global solution if at all possible</p>
