<?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/"
xmlns:series="http://unfoldingneurons.com/"
> <channel><title>Comments on: Implement jQuery-like &#8220;Click&#8221; Syntax In MooTools&#160;1.2</title> <atom:link href="http://davidwalsh.name/implement-jquery-click-syntax-mootools/feed" rel="self" type="application/rss+xml" /><link>http://davidwalsh.name/implement-jquery-click-syntax-mootools</link> <description>Legendary scribbles about JavaScript, HTML5, AJAX, PHP, CSS, and ∞.</description> <lastBuildDate>Wed, 23 May 2012 04:02:29 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <item><title>By: lamaster</title><link>http://davidwalsh.name/implement-jquery-click-syntax-mootools#comment-3521</link> <dc:creator>lamaster</dc:creator> <pubDate>Wed, 22 Oct 2008 11:48:00 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=472#comment-3521</guid> <description>@david
i think you should &quot;return this&quot;
after implementationElement.implement({
‘click’: function(fn) {
this.addEvent(’click’, fn);
return this
}
}); </description> <content:encoded><![CDATA[<p>@david<br
/> i think you should &#8220;return this&#8221;<br
/> after implementation</p><p>Element.implement({<br
/> ‘click’: function(fn) {<br
/> this.addEvent(’click’, fn);<br
/> return this<br
/> }<br
/> });</p> ]]></content:encoded> </item> <item><title>By: andrei009</title><link>http://davidwalsh.name/implement-jquery-click-syntax-mootools#comment-3253</link> <dc:creator>andrei009</dc:creator> <pubDate>Thu, 02 Oct 2008 17:08:23 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=472#comment-3253</guid> <description>Element.implement({
click: function(fn){
return this.addEvent(&#039;click&#039;,fn);
}
});</description> <content:encoded><![CDATA[<p>Element.implement({<br
/> click: function(fn){<br
/> return this.addEvent(&#8216;click&#8217;,fn);<br
/> }<br
/> });</p> ]]></content:encoded> </item> <item><title>By: Tor</title><link>http://davidwalsh.name/implement-jquery-click-syntax-mootools#comment-3248</link> <dc:creator>Tor</dc:creator> <pubDate>Thu, 02 Oct 2008 05:37:15 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=472#comment-3248</guid> <description>In my meager JavaScript dabblings, I&#039;ve always been jealous of jQuery&#039;s event syntax. Needless to say, I&#039;m really happy to see this as an option.I&#039;m somewhat of a hobbyist, so I apologize in advance for any mistakes. I did a little playing around and it looks like it doesn&#039;t break .bind(this). This, of course, is a trivial implementation and there&#039;s a chance that I totally misused .bind()If anyone&#039;s curious, the link in my name goes to my uh ... ultra-complex tests :P</description> <content:encoded><![CDATA[<p>In my meager JavaScript dabblings, I&#8217;ve always been jealous of jQuery&#8217;s event syntax. Needless to say, I&#8217;m really happy to see this as an option.</p><p>I&#8217;m somewhat of a hobbyist, so I apologize in advance for any mistakes. I did a little playing around and it looks like it doesn&#8217;t break .bind(this). This, of course, is a trivial implementation and there&#8217;s a chance that I totally misused .bind()</p><p>If anyone&#8217;s curious, the link in my name goes to my uh &#8230; ultra-complex tests :P</p> ]]></content:encoded> </item> <item><title>By: Sean McArthur</title><link>http://davidwalsh.name/implement-jquery-click-syntax-mootools#comment-3241</link> <dc:creator>Sean McArthur</dc:creator> <pubDate>Wed, 01 Oct 2008 19:43:23 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=472#comment-3241</guid> <description>Something I&#039;ve thought of that might be a slight problem, though haven&#039;t tested, is binding.I could see someone trying to use this keyword, and might even remember to bind it in the click function, but when it gets used in the addEvent part, you didnt bind this.Like I said, haven&#039;t tested for actual failure, but in theory it sounds breakable :D</description> <content:encoded><![CDATA[<p>Something I&#8217;ve thought of that might be a slight problem, though haven&#8217;t tested, is binding.</p><p>I could see someone trying to use this keyword, and might even remember to bind it in the click function, but when it gets used in the addEvent part, you didnt bind this.</p><p>Like I said, haven&#8217;t tested for actual failure, but in theory it sounds breakable :D</p> ]]></content:encoded> </item> <item><title>By: Lim Chee Aun</title><link>http://davidwalsh.name/implement-jquery-click-syntax-mootools#comment-3238</link> <dc:creator>Lim Chee Aun</dc:creator> <pubDate>Wed, 01 Oct 2008 16:59:37 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=472#comment-3238</guid> <description>@david: No problem. I&#039;m actually working (very slowly) on porting (almost) all jQuery-style syntax to Mootools. Not sure if it will be useful though.</description> <content:encoded><![CDATA[<p>@david: No problem. I&#8217;m actually working (very slowly) on porting (almost) all jQuery-style syntax to Mootools. Not sure if it will be useful though.</p> ]]></content:encoded> </item> <item><title>By: david</title><link>http://davidwalsh.name/implement-jquery-click-syntax-mootools#comment-3236</link> <dc:creator>david</dc:creator> <pubDate>Wed, 01 Oct 2008 16:50:25 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=472#comment-3236</guid> <description>&lt;p&gt;@Lim Chee Aun:  Great tip!  I was trying to get something similar to work but couldn&#039;t get it going.  Thanks for sharing!&lt;/p&gt;</description> <content:encoded><![CDATA[<p>@Lim Chee Aun:  Great tip!  I was trying to get something similar to work but couldn&#8217;t get it going.  Thanks for sharing!</p> ]]></content:encoded> </item> <item><title>By: Lim Chee Aun</title><link>http://davidwalsh.name/implement-jquery-click-syntax-mootools#comment-3235</link> <dc:creator>Lim Chee Aun</dc:creator> <pubDate>Wed, 01 Oct 2008 16:48:59 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=472#comment-3235</guid> <description>Nice, but why not just pass the whole &#039;fn&#039; to the &#039;addEvent&#039; function? Eg:Element.implement({
&#039;click&#039;: function(fn) {
this.addEvent(&#039;click&#039;, fn);
}
});.. because some coders might probably do this:$(&#039;click-me&#039;).click(function(e) {
e.stop();
alert(&#039;Clicked&#039;);
});... and probably some don&#039;t want to &#039;stop&#039; the event by default.</description> <content:encoded><![CDATA[<p>Nice, but why not just pass the whole &#8216;fn&#8217; to the &#8216;addEvent&#8217; function? Eg:</p><p>Element.implement({<br
/> &#8216;click&#8217;: function(fn) {<br
/> this.addEvent(&#8216;click&#8217;, fn);<br
/> }<br
/> });</p><p>.. because some coders might probably do this:</p><p>$(&#8216;click-me&#8217;).click(function(e) {<br
/> e.stop();<br
/> alert(&#8216;Clicked&#8217;);<br
/> });</p><p>&#8230; and probably some don&#8217;t want to &#8216;stop&#8217; the event by default.</p> ]]></content:encoded> </item> <item><title>By: feeble</title><link>http://davidwalsh.name/implement-jquery-click-syntax-mootools#comment-3231</link> <dc:creator>feeble</dc:creator> <pubDate>Wed, 01 Oct 2008 13:11:58 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=472#comment-3231</guid> <description>Hey, Just wanted to say thanks for your blog, its really helped me along with Mootools, and I enjoy working and creating things with ease.I just need to know thou,
Should I be switching over to JQuery.
with Microsoft&#039;s decision to incorporate JQuery, I&#039;m wondering if I&#039;m using the wrong framework.I read the article at &lt;a href=&quot;http://juliocapote.com/post/52467447/why-mootools-or-why-not-jquery&quot; rel=&quot;nofollow&quot;&gt;juliocapote.com&lt;/a&gt;
and well I just need a Yes or a No.
I trust your judgment.andIis the future of Mootools sound?</description> <content:encoded><![CDATA[<p>Hey, Just wanted to say thanks for your blog, its really helped me along with Mootools, and I enjoy working and creating things with ease.</p><p>I just need to know thou,<br
/> Should I be switching over to JQuery.<br
/> with Microsoft&#8217;s decision to incorporate JQuery, I&#8217;m wondering if I&#8217;m using the wrong framework.</p><p>I read the article at <a
href="http://juliocapote.com/post/52467447/why-mootools-or-why-not-jquery" rel="nofollow">juliocapote.com</a><br
/> and well I just need a Yes or a No.<br
/> I trust your judgment.</p><p>and</p><p>Iis the future of Mootools sound?</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced (User agent is rejected)
Database Caching 3/7 queries in 0.023 seconds using disk: basic
Object Caching 687/687 objects using disk: basic

Served from: davidwalsh.name @ 2012-05-23 03:33:21 -->
