how to get a reference to the defining 'class' inside an inner method in JavaScript?
<p>I have the following JS code:</p>

<pre><code>var Item = function ()
{
    this.property = '';
    this.myfunction = function ()
    {
        var value = this.property;
    };

};
</code></pre>

<p>however, <code>this</code> does not point to the defining class so value doesn't get anything.</p>

<p>how do I access <code>this.property</code> from inside my function?</p>
