title: How to access the outer this from jQuery functions?
body: <p>out of curiosity is there a way to access <code>this.color</code> from the <code>paint</code> function?</p>
  
  <pre><code>function Foo(color)
  {
      this.color = color;
      this.paint = function paint()
      {
         $("select").each(function(idx, el)
          {
              $(el).css("background", color); // OK
              // $(el).css("background", this.color); // this.color is undefined
          })
      }
  }
  
  new Foo("red").paint();
  </code></pre>
  
  <p>Thanks</p>