Thank you for reporting this bug. We will make it our priority to review this report.
ViewController - inconsistent event handling for stores and components
ViewController - inconsistent event handling for stores and components
I don't have a test case, but I can describe the issue in detail. See this VC code fragment. I also have a global controller which listens to the same events.
The inconsistency is that for components the VC beforedestroy event handler is called first and then the global event handler is called. For stores, however, the sequence is reversed. First the global event handler is called and then the VC event handler is invoked.
The sequence should be consistent, so I'm going to call this a bug.
Code:
Ext.define('MyView', {
extend: 'Ext.app.ViewController',
config: {
listen: {
component: {
'#': {
beforedestroy: 'onBeforeDestroy'
}
},
store: {
measure: {
clear: 'onStoreClear'
}
}
}
},
....
Hi LesJ--
Thanks for the explanation! Can you put together a test case that demonstrates this in action ( http://ift.tt/1es0mnV)?
Thanks!
Joel
ViewController - inconsistent event handling for stores and components
Aucun commentaire:
Enregistrer un commentaire