Element#delegate is submitted!
Your script is now in the approval queue. After a quick review we will notify you of the script's status by email. If everything's alright, we'll publish your work to the site and rss feed. Otherwise, we'll send you the email explaining what seems questionable. In that case, reply to the email whenever we should review the script again.
Also, don't hesitate to discuss things if you feel that our reasons are unfair. We are real folk, and we don't like bureaucracy. : )
Thank you for your contribution!
1
Event delegation is an alternative to attaching lots of event handlers or reattaching event handlers when content changes.
An observer is placed on a parent element and all child elements fire handlers according to the given rules they match.
This script provides Element#delegate and Element#stopDelegating functions.
For more information on event delegation, see
http://cherny.com/webdev/70/javascript-event-delegation-and-event-hanlde...
- Website:
-
Element#delegate
- Author:
-
Ken Snyder
- Size:
- 2.3 KB
- Last modified:
- 08/27/2008
- License:
-
Creative Commons Attribution License v3.0
- Tags:
- delegation, event
- Rating:
-
4
(4/5 from 3 votes)
- Your rating:
-
0
Not yet rated
- Please sign in or register to rate this script
- You can't rate your own script.