<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Event Delegation With YUI 3</title>
	<atom:link href="http://www.yuiblog.com/blog/index.php/2009/11/13/event-delegation-3/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.yuiblog.com/blog/2009/11/13/event-delegation-3/</link>
	<description>The official blog of the YUI Project.</description>
	<lastBuildDate>Thu, 09 Feb 2012 01:46:52 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
	<item>
		<title>By: Caridy Patino</title>
		<link>http://www.yuiblog.com/blog/2009/11/13/event-delegation-3/comment-page-1/#comment-586347</link>
		<dc:creator>Caridy Patino</dc:creator>
		<pubDate>Mon, 16 Nov 2009 18:30:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.yuiblog.com/blog/?p=879#comment-586347</guid>
		<description>@Binesh: this feature is a built-in solution in YUI 3.0, and it&#039;s not related with bubbling library. And yes, you can use it in a similar way. Here is an example:

&lt;code&gt; 
Y.delegate(&#039;click&#039;, function(e) {
   // e.currentTarget -&gt; matching node
   e.halt();
}, &#039;document&#039;, &#039;a.actionPopup, button.actionPopup&#039;);
&lt;/code&gt;

In this case, this is a global listener at the document level, triggering the action if the user clicks on a link or a button with class &quot;actionPopup&quot;. That will be very similar to what &quot;YAHOO.Bubbling.addDefaultAction&quot; does, but in a more consistent way. :-)</description>
		<content:encoded><![CDATA[<p>@Binesh: this feature is a built-in solution in YUI 3.0, and it&#8217;s not related with bubbling library. And yes, you can use it in a similar way. Here is an example:</p>
<p><code><br />
Y.delegate('click', function(e) {<br />
   // e.currentTarget -&gt; matching node<br />
   e.halt();<br />
}, 'document', 'a.actionPopup, button.actionPopup');<br />
</code></p>
<p>In this case, this is a global listener at the document level, triggering the action if the user clicks on a link or a button with class &#8220;actionPopup&#8221;. That will be very similar to what &#8220;YAHOO.Bubbling.addDefaultAction&#8221; does, but in a more consistent way. :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Event Delegation with YUI 3.0 &#124; TopicObserver.com</title>
		<link>http://www.yuiblog.com/blog/2009/11/13/event-delegation-3/comment-page-1/#comment-586341</link>
		<dc:creator>Event Delegation with YUI 3.0 &#124; TopicObserver.com</dc:creator>
		<pubDate>Mon, 16 Nov 2009 13:57:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.yuiblog.com/blog/?p=879#comment-586341</guid>
		<description>[...] I&#8217;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(&#8221;click&#8221;, [...]</description>
		<content:encoded><![CDATA[<p>[...] I&#8217;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(&#8221;click&#8221;, [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Binesh Gummadi</title>
		<link>http://www.yuiblog.com/blog/2009/11/13/event-delegation-3/comment-page-1/#comment-586340</link>
		<dc:creator>Binesh Gummadi</dc:creator>
		<pubDate>Mon, 16 Nov 2009 13:03:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.yuiblog.com/blog/?p=879#comment-586340</guid>
		<description>This is great. We are using bubbling library 2.1 and I am not sure if it is compatible with YUI2.8 yet.

Does addDefaultAction method use on() or delegate()?

YAHOO.Bubbling.addDefaultAction(&#039;container&#039;, handleClick);

Once again a neat explanation. Thank you.</description>
		<content:encoded><![CDATA[<p>This is great. We are using bubbling library 2.1 and I am not sure if it is compatible with YUI2.8 yet.</p>
<p>Does addDefaultAction method use on() or delegate()?</p>
<p>YAHOO.Bubbling.addDefaultAction(&#8216;container&#8217;, handleClick);</p>
<p>Once again a neat explanation. Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Caridy Patino</title>
		<link>http://www.yuiblog.com/blog/2009/11/13/event-delegation-3/comment-page-1/#comment-586310</link>
		<dc:creator>Caridy Patino</dc:creator>
		<pubDate>Sat, 14 Nov 2009 20:28:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.yuiblog.com/blog/?p=879#comment-586310</guid>
		<description>Yes, you&#039;re right, &quot;delegate&quot; was introduced in YUI 3.0 beta and has been backported into YUI 2.8. Here is the full info:

http://developer.yahoo.com/yui/event/#delegate</description>
		<content:encoded><![CDATA[<p>Yes, you&#8217;re right, &#8220;delegate&#8221; was introduced in YUI 3.0 beta and has been backported into YUI 2.8. Here is the full info:</p>
<p><a href="http://developer.yahoo.com/yui/event/#delegate" rel="nofollow">http://developer.yahoo.com/yui/event/#delegate</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: thanks</title>
		<link>http://www.yuiblog.com/blog/2009/11/13/event-delegation-3/comment-page-1/#comment-586307</link>
		<dc:creator>thanks</dc:creator>
		<pubDate>Sat, 14 Nov 2009 16:51:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.yuiblog.com/blog/?p=879#comment-586307</guid>
		<description>I believe you rolled .delegate() into the 2.8 branch as well (I sure hope so, because I&#039;m using it :)).</description>
		<content:encoded><![CDATA[<p>I believe you rolled .delegate() into the 2.8 branch as well (I sure hope so, because I&#8217;m using it :)).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh L</title>
		<link>http://www.yuiblog.com/blog/2009/11/13/event-delegation-3/comment-page-1/#comment-586295</link>
		<dc:creator>Josh L</dc:creator>
		<pubDate>Sat, 14 Nov 2009 00:47:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.yuiblog.com/blog/?p=879#comment-586295</guid>
		<description>This is great!

You linked me to it once, but I never dove into your Bubbling Library for YUI2.

For me, this will be especially useful for callbacks that handle &quot;sliding door&quot; links. Handling the em/span/img part of the sliding door link and handling grouped links with anywhere from 1-5 class names come to mind. For example:

http://css-tricks.com/forums/viewtopic.php?f=5&amp;t=3965</description>
		<content:encoded><![CDATA[<p>This is great!</p>
<p>You linked me to it once, but I never dove into your Bubbling Library for YUI2.</p>
<p>For me, this will be especially useful for callbacks that handle &#8220;sliding door&#8221; links. Handling the em/span/img part of the sliding door link and handling grouped links with anywhere from 1-5 class names come to mind. For example:</p>
<p><a href="http://css-tricks.com/forums/viewtopic.php?f=5&#038;t=3965" rel="nofollow">http://css-tricks.com/forums/viewtopic.php?f=5&#038;t=3965</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

