What is the replacement for sencha touch 1.1 Ext.dispatch method in sencha touch 2?
I need replacement for code below
listeners:{
itemtap:function(data,index){
var record = data.getStore().getAt(index);
// the record that has been clicked.
Ext.dispatch({
controller: 'ControllerName'
,action: 'ControllerMethod'
,record: record
});
}
}
Method
Ext.dispatchstill exists in Sencha Touch 2: http://docs.sencha.com/touch/2-0/#!/api/Ext.app.Application-method-dispatchBut if you just don’t like to use it for some reason, you can get an instance of the controller and call method dicrectly: