更新emberjs后发生路由错误

MBe*_*mam 1 ember.js ember-data

我尝试将我的应用程序emberjs版本从1.0.0 rc8更新为1.0.0但我得到路由错误.在我的应用程序路由我有这些代码:

OlapApp.ApplicationRoute = Ember.Route.extend({
    setupController: function (controller, model) {
        this.controllerFor('column').set('model', OlapApp.AxisModel.find());
       this.controllerFor('row').set('model', OlapApp.AxisModel.find());
   },
   renderTemplate: function (controller, context) {
      this._super(controller, context);
      this.render('application');
      this.render('column', {
        into: 'application',
        outlet: 'column',
        controller: 'column'
    });
    this.render('row', {
        into: 'application',
        outlet: 'row',
        controller: 'row'
    });
},
  dimenssionTree: function () {
    return OlapApp.MeModel.find();
}
});
Run Code Online (Sandbox Code Playgroud)

并得到此错误:

DEPRECATION: Action handlers contained in an `events` object are deprecated in favor of          putting them in an `actions` object (error on <OlapApp.ApplicationRoute:ember314>)
    at Object.triggerEvent (file:///F:/OLAP/app/lib/ember.js:30519:13)
    at trigger (file:///F:/OLAP/app/lib/ember.js:29641:16)
    at handlerEnteredOrUpdated (file:///F:/OLAP/app/lib/ember.js:29537:11)
    at file:///F:/OLAP/app/lib/ember.js:29512:9
    at eachHandler (file:///F:/OLAP/app/lib/ember.js:29559:9)
    at setupContexts (file:///F:/OLAP/app/lib/ember.js:29511:7)
    at finalizeTransition (file:///F:/OLAP/app/lib/ember.js:29835:7)
    at transitionSuccess (file:///F:/OLAP/app/lib/ember.js:29732:13)
    at invokeCallback (file:///F:/OLAP/app/lib/ember.js:8055:19) ember.js:394
 Error while loading route: TypeError {} ember.js:394
Run Code Online (Sandbox Code Playgroud)

如果评论这些行:

     this.controllerFor('column').set('model',OlapApp.AxisModel.find());
    this.controllerFor('row').set('model',OlapApp.AxisModel.find());
Run Code Online (Sandbox Code Playgroud)

我可以看到我的应用程序,但应用程序剂量工作,我认为从这些牵引线的错误.我还将ember-data更新为builds.emberjs.com的最新版本

col*_*mba 5

发布的错误来自dimenssionTree应该actions在错误中提到的对象中:

actions: {
    dimenssionTree: function () {
        return OlapApp.MeModel.find();
    }
}
Run Code Online (Sandbox Code Playgroud)

就像你发现OlapApp.AxisModel.find()应该写的this.store.find('AxisModel').至于FIxtures可能很高兴看到你的代码.