sans-serif   serif

«

Element.inject

Injects, or inserts, the Element at a particular place relative to the Element’s children (specified by the second the argument). Official MooTools Documentation.

Articles using Element.inject

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 »