title: calling javascript on rendering views in BackBone js. post-render callback?
body: <p>behold, a backbone view render call:</p>
  
  <pre><code>render: function() {
    $(this.el).html(this.template({title: 'test'}));  //#1
    this.renderScatterChart();
    return this;
  },
  </code></pre>
  
  <p>so, I call a standard render at #1. and then, i call a method [this time, it is a wrapper for charting lib] that looks for a div. the div is rendered by the render call. but at this point, it is not attached to the DOM yet (right?). so the chart call sadly dies.</p>
  
  <p>what is the pattern for this? i'd love hear that there is a post-render callback. i've tried a few hacks around this, and sometimes i get the chart to work, but events don't bind.</p>