sans-serif   serif

«

Element.Delegation

Extends the Element native object to include delegations in the addEvent and addEvents methods. Official MooTools Documentation.

Articles using Element.Delegation

Event Delegation with MooTools–Quit Selecting all Those Elements!

January 16, 2010

Event delegation rules the school. Instead of adding events to 300 elements you just add an event to the parent element and it’ll delegate the event down to it’s children, like every good parent would. The benefits? 1) Efficiency, 2) “Set it and forget it”, 3) Makes attaching and detaching events in a class easier, 4) Makes you look cool, and that after all, is the point of being a web developer instead of a surfing instructor.

Read More »