How do you extend a class with a jQuery wrapped set? <p>The following almost works...</p> <pre><code>$el = -&gt; $el:: = $ '#test' new class extends $el constructor: -&gt; @append '&lt;h1&gt;Worked!&lt;/h1&gt;' # this will overflow the stack @find('[role=test2]').append '&lt;h2&gt;Also Worked!&lt;/h2&gt;' </code></pre> <p>Example here: <a href="http://jsfiddle.net/66a3jdot/" rel="nofollow">http://jsfiddle.net/66a3jdot/</a></p>