top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration

Facebook Login
Site Registration

Why we preferred event-delegation model over earlier event-inheritance model?

+1 vote
100 views
Why we preferred event-delegation model over earlier event-inheritance model?
posted Dec 6, 2014 by Deepan

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+3 votes
 
Best answer

The event-delegation model has two advantages over the event-inheritance model.

  1. Event-delegation helps in event handling by objects other than those who generate the events.
  2. Help in differentiating between component design and its use.
  3. Event-delegation performs much better in applications where generation of events takes place.
  4. Event-delegation model does not repeatedly process unhandled events, which cause improvement in the performance.
answer Dec 8, 2014 by Karthick.c
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...