javascript class props
<p>I have a class defined like this (scheme) :</p>

<pre><code>myClass = BaseClass.extend({
    method1 : function(){ ...},
    method2 : function(){ ...}
});
</code></pre>

<p>How can I call method2 from method1? something like:</p>

<pre><code>myClass = BaseClass.extend({
    method1 : function(){ method2(); },
    method2 : function(){ ...}
});
</code></pre>
