All posts tagged event-delegation

Event Delegation with YUI 3.0

Personally I’ve never used the YUI library (yet), but the new event delegation functionality of YUI 3.0 has a very nice look to it: // Defining simple listeners on each element: Y.on(“click”, handleClick, “#container ul li a.profile”); // Defining listener on a container using the delegate() method: Y.delegate(‘click’, handleClick, ‘#container’, ‘ul li a.profile’); [...] Event [...]

  • @twitter

  • Tags

  • Topics

  • Recent Comments

  • Topic Map Feeds