title: How to delay a class from executing?
body: <p>So I have this:</p>
  
  <pre><code>(function () {
     // work
  }).defer(1000);
  </code></pre>
  
  <p>For my admittedly weak understanding of javascript this executes an anonymous class after a second of wait time.</p>
  
  <p>So I wanted to change it to something like this:</p>
  
  <pre><code>var newClass = function() {
     // work
  };
  newClass().defer(1000);
  </code></pre>
  
  <p>But this doesn't give me the delay for some reason.  I feel like these two code samples are exactly the same, I am wrong in this assumption?</p>
  
  <p>Edit:  </p>
  
  <p>I'm using this <a href="http://extjs.cachefly.net/ext-3.2.1/docs/?class=Ext.Component" rel="nofollow">defer</a> method, sorry I thought it was a javascript thing.</p>