Hi
we want to know that What is the advantage of the event-delegation model over the earlier event inheritance model?
What is the advantage of the event-delegation model over the earlier event inheritance model?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.


Satyapriya NayakRank #47 · 31.5K reputationPosted May 22, 2012, 5:15 PM EDT
There are two advantages of event-delegation model over event-inheritance model.
First – event-delegation enables the handling of events by objects other than the ones which generate the events. It is a clean separation between design and usage of a component.
Second – It s performance is much better in applications in which many events are generated. This improvement of performance is due to the fact that the unhandled events need not be repeatedly processed, which is the case of event-inheritance model.
Thanks