title: Set Focus on input after Backbone View rendered
body: <p>I have a view with a login form and I'm attempting to set the focus after the view is rendered. I tried this, but it didn't work:</p>
  
  <pre><code>class App.Views.Login extends Backbone.View
    template: template("login")
  
    events:
      "click button": "login"
  
    render: -&gt;
       @$el.html @template(@)
       @$el.find("#email").focus()
  </code></pre>
  
  <p>Also tried this;</p>
  
  <pre><code>class App.Views.Login extends Backbone.View
    template: template("login")
  
    events:
      "click button": "login"
  
    render: -&gt;
       @$el.html(@template(@)).ready =&gt;
         @$el.find("#email").focus()
  </code></pre>
  
  <p>Added router to show how Login is attached to the DOM:</p>
  
  <pre><code>class App.Routers.App extends Backbone.Router
    initialize: -&gt;
      chrome = new Spokely.Views.Chrome el: $("#app")
      chrome.render()
      @mainEl = $("#main")
  
    routes:
      "": "index"
      "ad/:id": "show"
      "about": "about"
      "login": "login"
      "signup": "signup"
  
    login: -&gt;
      view = new Spokely.Views.Login()
      @mainEl.html view.render().el
  </code></pre>
  
  <p>What am i missing?</p>