node-evt-delegation.mustache revision fb1ecdf65fd4106deb62da339763f2e7670ca0f6
10139N/A <p>This example demonstrates using a single event listener on a list to delegate clicks on the list items.</p>
18532N/A<p>We will use the <code>all</code> method of our YUI instance to get a <code>NodeList</code> instance to work with.</p>
10139N/A<p>In this example, we will listen for a <code>click</code> event on the list and handle it at the item level and use information from the <code>event</code> object to update the nodes.</p>
20291N/A nodes.filter(':not(.yui3-pass)').setContent('Click me too please!');