Hi Friends............
What are the advantages of the event-delegation model over the event-inheritance model?
Thanks.............
Event Delegation Model
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Satyapriya NayakRank #47 · 31.5K reputationPosted Jan 2, 2012, 5:14 PM EST
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
Vikas MishraRank #559 · 4.3K reputationPosted Jan 3, 2012, 11:18 AM EST