Hi Friends............
What are the advantages of the event-delegation model over the event-inheritance model?
Thanks.............
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Satyapriya NayakPosted Jan 2, 2012, 10:14 PM
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 MishraPosted Jan 3, 2012, 4:18 PM