ember.js - routing error after updating emberjs -
i try update app emberjs version 1.0.0 rc8 1.0.0 route error . in application route have these code :
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(); } });
and error :
deprecation: action handlers contained in `events` object deprecated in favor of putting them in `actions` object (error on <olapapp.applicationroute:ember314>) @ object.triggerevent (file:///f:/olap/app/lib/ember.js:30519:13) @ trigger (file:///f:/olap/app/lib/ember.js:29641:16) @ handlerenteredorupdated (file:///f:/olap/app/lib/ember.js:29537:11) @ file:///f:/olap/app/lib/ember.js:29512:9 @ eachhandler (file:///f:/olap/app/lib/ember.js:29559:9) @ setupcontexts (file:///f:/olap/app/lib/ember.js:29511:7) @ finalizetransition (file:///f:/olap/app/lib/ember.js:29835:7) @ transitionsuccess (file:///f:/olap/app/lib/ember.js:29732:13) @ invokecallback (file:///f:/olap/app/lib/ember.js:8055:19) ember.js:394 error while loading route: typeerror {} ember.js:394
if comment these line :
this.controllerfor('column').set('model',olapapp.axismodel.find()); this.controllerfor('row').set('model',olapapp.axismodel.find());
i can see app app dosent work , think error these tow line. update ember-data last version builds.emberjs.com
the error posted comes dimenssiontree
should in actions
object mentioned in error:
actions: { dimenssiontree: function () { return olapapp.memodel.find(); } }
like found olapapp.axismodel.find()
should written this.store.find('axismodel')
. fixtures might see code.
Comments
Post a Comment