ghempton/ember-layout — Issue #1: unhandled event error if using Ember.data
Author: wyaeld
Created: 2012-02-20 05:34:35+00:00
State: open

Discovered that when ember-layout + ember-routemanager are combined with ember-data, you get a 'setData' event being dispatched by the RESTadapter that seems to hit one of the RouteManagers LayoutStates. This causes an error.

The particular event is occuring because in the enter() function for the state, I'm calling find on the datastore, which returns the model record it has immediately, and then dispatches an ajax request for updated information, which triggers a callback when it comes back.

Unfortunately I don't have a simple demo available of the problem, but let me know if you need more to go on, or can see why this is happening