Object Oriented Programming in Javascript
<p>Consider an OOP model. I wanted to implement, </p>

<pre><code>funct1( arg ).subfunct1( arg ); ( 
</code></pre>

<p>Of course like jQuery. where you have <code>$( arg ).subfn( arg )</code></p>

<p>I have done it successfully for one subfunction. BUT,</p>

<pre><code>funct1( arg ).subfunct1( arg ); // ==&gt; works fine.
funct1( arg ).subfunct1( arg ).subfunct( arg ); // ==&gt; doesnt work.
</code></pre>

<p>Source is:</p>

<pre><code>var funct1=function() { 
    var dummy=new Object(); 
    dummy.subfunct1=bla bla; 
    dummy.subfunct2=bla bla; 
    return dummy; 
}
</code></pre>

<p>Can you say any remedies.</p>
