title: How to determine if a view has been rendered? javascript
body: <p>I am creating my application using backbone.js</p>
  
  <p>As seen below I have a layoutView which I use to render the layout and also a mini profile within the layout.</p>
  
  <p>The issue I have is with timing. I need to have the 'render' method complete first before triggering 'renderProfile' method. How can I do that?</p>
  
  <pre><code>Onethingaday.Views.Home ||= {}
  
  class Onethingaday.Views.Home.LayoutView extends Backbone.View
    template: JST["backbone/templates/home/layout"]
  
    initialize: -&gt;
      @options.user.bind('change',@render,@renderProfile, @)
  
    renderProfile: -&gt;
      view = new Onethingaday.Views.Shared.MiniProfileView
        user: @options.user
  
      @$('.profile').html view.render().el
  
    render: -&gt;
      $(@el).html(@template())
      @
  </code></pre>