Events in Ext
January 7th, 2009 Posted in noodtarareid.com | editIs it possible to registration the event handler before handler with same name
see example:
this.addEvents(
'myevent'
);
....
this.on({
myevent: {scope: this, fn: this.onMyEvent}
})
...
somewhere below
this.on({
myevent: {scope: this, fn: this.onMyEventMainHandler}
});
Is it possible that the function {this.onMyEventMainHandler} run before {this.onMyEvent}?
You can create your own class adn implement a reorder strategy for ordering the objects to notify (for example a priority queue or whatever you need).
Or if an object A and an object B that are registred to the same event and they need a coordination,maybe they could know each other and coordinates themselves...
Only some ideas :)
Hope this helps a little
Change ordering not possible?
Thanks for your reply
#If you have any other info about this subject , Please add it free.# |