title: Referencing "this" inside setInterval/setTimeout within object prototype methods
body: <p>Normally I'd assign an alternative "self" reference when referring to "this" within setInterval. Is it possible to accomplish something similar within the context of a prototype method? The following code errors.</p>
  
  <pre><code>function Foo() {}
  Foo.prototype = {
      bar: function () {
          this.baz();
      },
      baz: function () {
          this.draw();
          requestAnimFrame(this.baz);
      }
  };
  </code></pre>