4 ms·
I like MooTools. When they added event delegation to their library, they simply modified the existing addEvent method to parse the event name instead of adding
by emehrkay 15y ago
I like MooTools. When they added event delegation to their library, they simply modified the existing addEvent method to parse the event name instead of adding new method after new method -- seems like a more thought out approach.
$(selector').addEvent('click:relay(selector)', fn)