I am having the problem that events fired from Views are not handled by Controllers anymore.
If I have, for instance, an event called "MyEvent", raised from "MyView", which gets handled in "MyController"
Code:
this.control({
'MyView': {
'MyEvent': function() { //doSomething }
}
})
Now if I raise that event from MyView via
Code:
me.fireEvent('MyEvent')
in 4.2.2, it was caught and handled in MyController. This seems to be not working anymore in 5.0
I looked around a little bit inside the code and found the Ext.app.EventDomain.monitor method. It used to intercept the fireEvent method and according to the documentation, it still should.
However, the implentation of this method changed and it is now monitoring the doFireEvent method instead of the fireVentArgs method. You can see this in the source here:
http://ift.tt/1lZvlzM
For comparison, this is the old implementation of 4.2.2:
http://ift.tt/1lZvlzO
Sine fireEvent calls fireEventArgs, the call was interecepted in 4.2.2 but is not anymore in 5.0
Is there anything I am missing, is this done on purpose? If so, what do I have to do to get things working again? (I could call doFireEvent instead of fireEvent, but I doubt that this is inteded)
Aucun commentaire:
Enregistrer un commentaire