title: Ember error while loading asynchronous routes
body: <p>I'm loading data from a JSON API. My routes almost always need to fetch new data from the server. I don't have control over the API format. </p>
  
  <p>I'm trying to use the functionality described in the <a href="http://emberjs.com/guides/routing/asynchronous-routing/" rel="nofollow">Ember Asynchronous Routing guide</a>. Specifically, I'm returning a promise in the route's <code>model</code> hook so that I delay transitioning to the route until the data has loaded (and display a loading indicator in the meantime). </p>
  
  <p>Everything (<code>actions.loading</code>, <code>afterModel</code>, etc.) seemed to be working as described in the guide. However, I get a showstopper error whenever I transition to a route I've been to before. </p>
  
  <p>This JSBin is a minimal example that uses the same versions of the Ember and its dependencies that is included in the Starter Kit: </p>
  
  <p><strong><a href="http://jsbin.com/zorey/1/edit?html,js,output" rel="nofollow">http://jsbin.com/zorey/1/edit?html,js,output</a></strong> </p>
  
  <p>Click the first name, go back, and then click the second name. You'll see this error in your console: </p>
  
  <pre><code>Error while loading route: TypeError: Object #&lt;Object&gt; has no method 'apply'
  </code></pre>
  
  <p>What am I doing wrong?</p>