behold, a backbone view render call:
render: function() {
$(this.el).html(this.template({title: \'test\'})); //#1
this.renderScatterChart();
return th
I know this is answered, but thought I would share. Underscore js has this covered for you with the _.defer function.
render: function() {
$(this.el).html(this.template({title: 'test'})); //#1
_.defer( function( view ){ view.renderScatterChart();}, this );
return this;
},
According the the Underscore docs, this is effectively the same thing as the accepted solution.