Total members 9952 | Gratitudes |It is currently Sat Feb 11, 2012 3:14 pm Login / Join Codemiles


All times are UTC [ DST ]




Post new topic Reply to topic  Quick reply  [ 2 posts ] 
Author Question
 Question subject: advantage of the event delegation model over event-inherit
PostPosted: Thu Nov 06, 2008 10:39 pm 
Offline
Proficient
User avatar

Joined: Sun Oct 19, 2008 3:47 pm
Posts: 281
Has thanked: 0 time
Have thanks: 1 time

What is the advantage of the event-delegation model over the earlier event-inheritance model?


TOP
 Profile Send private message  
Reply with quote  
 Question subject: Re: advantage of the event delegation model over event-inherit
PostPosted: Thu Nov 06, 2008 10:40 pm 
Offline
Proficient
User avatar

Joined: Sun Oct 19, 2008 3:53 pm
Posts: 229
Has thanked: 0 time
Have thanks: 0 time
The event-delegation model has two advantages over the event-inheritance model. First, it enables event handling to be handled by objects other than the ones that generate the events (or their containers). This allows a clean separation between a component's design and its use. The other advantage of the event-delegation model is that it performs much better in applications where many events are generated. This performance improvement is due to the fact that the event-delegation model does not have to repeatedly process unhandled events, as is the case of the event-inheritance
model.


TOP
 Profile Send private message  
Reply with quote  
Post new topic Reply to topic Quick reply  [ 2 posts ] 
Quick reply


  


 Similar topics
 Topic title   Forum   Author   Comments 
 inherit background color from the parent element  HTML examples  msi_333  0
 Event Handling Notes  Java  Anonymous  0
 Nissan Pathfinder 2009 model  Market  jsocarl  0
 How can I pass a PHP variable to a window.onload event funct  PHP  Gilbertomorden  1
 m3g model from milkshape  Java  munozk  0

All times are UTC [ DST ]


Users browsing similar posts

Users browsing this forum: No registered users and 3 guests



Jump to:  
Previous Question | Next Question 




Home
General Talks
Finished Projects
Code Library
Games
Tutorials

Java
C/C++
C-sharp
php
Script
JSP/Servlets
Ajax
ASP/ASP.net
Google SEO
Database
Communications
Phpbb3 styles
Photoshop tutorials
Flash tutorials
Find a job






Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team