linuxyf
15 Jan 2012, 5:40 PM
in sencha touch pr2, i can fire a event from one controller to another controller, it works normally. the code is as following.
a controller:
this.application.fireEvent('eventname', para);
b controller:
init: function() {
this.application.on({
eventname: this.testfunction,
scope: this
})
}
but in sencha touch3, same code cause error:
Uncaught Error: [ERROR][com.controller.bController#getObservableId] Invalid unique id of 'Kitchen.controller.bController' for this object
why???
a controller:
this.application.fireEvent('eventname', para);
b controller:
init: function() {
this.application.on({
eventname: this.testfunction,
scope: this
})
}
but in sencha touch3, same code cause error:
Uncaught Error: [ERROR][com.controller.bController#getObservableId] Invalid unique id of 'Kitchen.controller.bController' for this object
why???