Why the below code gives me
Uncaught TypeError: Cannot read property 'listen' of undefined
?
Uncaught TypeError: Cannot read property 'listen' of undefined
?
According to API http://ift.tt/1pPxGiE
viewcontroller has a listen config
Code:
Ext.define('PH.view.viewcontroller.CenterTabPanelViewController', {
extend: 'Ext.app.ViewController',
alias: 'controller.CenterTabPanelViewController',
onAddTab : function(a) {
...
},
....
listen : {
'NavMySpaceViewController' : {
'loadineditor' : function(r) {
console.log('it works');
}
}
}
});
Aucun commentaire:
Enregistrer un commentaire