Prototype Plugins

Element#delgate

* Delegation avoids overhead associated with attaching events to every element that needs to fire a callback * Delegation avoids need to reattach observers when DOM is manipulated * Specify rules one at a time or in objects with selector-function pairs * Stop all delegates for a selector, event, or element * Caches compiled selectors for faster css queries * Apply delegates to any element * Releases delegate cache on window unload

Element#delgate
Homepage:
http://kendsnyder.com/sandbox/delegate/
Filed in:
Author:
Ken Snyder
Date Added:
April 8th, 2009
Recommended for:
  • 1.6.0.x
 
© 2013 Prototype Plugins. We love Prototype & script.aculo.us.