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.
- 2.3 KB
- Last modified:
Creative Commons Attribution License v3.0
- delegation, event
(4/5 from 3 votes)
- Your rating:
- Please sign in or register to rate this script