top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

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

+1 vote
345 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
...