我有一个完美适用于Chrome的网站;但是当我尝试使用Internet Explorer打开它时,加载模型的所有路由都会在控制台中显示错误:
Error while loading route: undefined
没有模型钩子执行的所有其他路由,工作正常;我在Internet Explorer 9上测试它;
有人知道为什么会这样吗? 不工作路线的一个例子:
App.ProductsRoute = Ember.Route.extend({
model: function() {
return this.store.find('product');
}
});
使用:
LOG_TRANSITIONS: true,
LOG_TRANSITIONS_INTERNAL: true,
我可以看到:
Transition #1: eng.products.all: calling beforeModel hook
Transition #1: eng.products.all: calling deserialize hook
Error while loading route: undefined
Transition #1: eng.products.all: transition aborted