<?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&#8217;s hover() Method in&#160;MooTools</title> <atom:link href="http://davidwalsh.name/jquery-hover-mootools/feed" rel="self" type="application/rss+xml" /><link>http://davidwalsh.name/jquery-hover-mootools</link> <description>Legendary scribbles about JavaScript, HTML5, AJAX, PHP, CSS, and ∞.</description> <lastBuildDate>Thu, 09 Feb 2012 09:55:41 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3</generator> <item><title>By: lossendae</title><link>http://davidwalsh.name/jquery-hover-mootools/comment-page-1#comment-15022</link> <dc:creator>lossendae</dc:creator> <pubDate>Tue, 05 Jan 2010 11:01:23 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=1618#comment-15022</guid> <description>@Constantin:Which can be backported to jQuery$(&#039;document&#039;).ready(function(){
$(&#039;.commentBox&#039;).bind(&#039;mouseenter mouseleave&#039;,function(){
$(this).find(&#039;.commentDate&#039;).css({‘display’ : ‘inline’});
},&#039;mouseleave&#039;,function(){
$(this).find(&#039;.commentDate&#039;).css({‘display’ : ‘none’});
})
});It&#039;s not because jQuery has shortcuts that you must use them.</description> <content:encoded><![CDATA[<p>@Constantin:</p><p>Which can be backported to jQuery</p><p>$(&#8216;document&#8217;).ready(function(){<br
/> $(&#8216;.commentBox&#8217;).bind(&#8216;mouseenter mouseleave&#8217;,function(){<br
/> $(this).find(&#8216;.commentDate&#8217;).css({‘display’ : ‘inline’});<br
/> },&#8217;mouseleave&#8217;,function(){<br
/> $(this).find(&#8216;.commentDate&#8217;).css({‘display’ : ‘none’});<br
/> })<br
/> });</p><p>It&#8217;s not because jQuery has shortcuts that you must use them.</p> ]]></content:encoded> </item> <item><title>By: Constantin</title><link>http://davidwalsh.name/jquery-hover-mootools/comment-page-1#comment-9587</link> <dc:creator>Constantin</dc:creator> <pubDate>Wed, 03 Jun 2009 21:37:29 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=1618#comment-9587</guid> <description>@joe This should do what you ask:window.addEvent(&#039;domready&#039;, function(){
$(document.body).getElements(&#039;.commentBox&#039;).addEvents({
&#039;mouseenter&#039;: function(){
this.getElement(&#039;.commentDate&#039;).setStyle(&#039;display&#039;,&#039;inline&#039;);
},
&#039;mouseleave&#039;: function(){
this.getElement(&#039;.commentDate&#039;).setStyle(&#039;display&#039;,&#039;none&#039;);
}
})
});</description> <content:encoded><![CDATA[<p>@joe This should do what you ask:</p><p>window.addEvent(&#8216;domready&#8217;, function(){<br
/> $(document.body).getElements(&#8216;.commentBox&#8217;).addEvents({<br
/> &#8216;mouseenter&#8217;: function(){<br
/> this.getElement(&#8216;.commentDate&#8217;).setStyle(&#8216;display&#8217;,'inline&#8217;);<br
/> },<br
/> &#8216;mouseleave&#8217;: function(){<br
/> this.getElement(&#8216;.commentDate&#8217;).setStyle(&#8216;display&#8217;,'none&#8217;);<br
/> }<br
/> })<br
/> });</p> ]]></content:encoded> </item> <item><title>By: joe</title><link>http://davidwalsh.name/jquery-hover-mootools/comment-page-1#comment-9057</link> <dc:creator>joe</dc:creator> <pubDate>Sat, 02 May 2009 14:35:02 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=1618#comment-9057</guid> <description>Hello. I&#039;am looking for this jQuery-Function in Mootools. Any Idea?$(document).ready(function() {$(&quot;.commentBox&quot;).hover(
function() { $(this).find(&quot;.commentDate&quot;).css({&#039;display&#039; : &#039;inline&#039;}); },
function() { $(this).find(&quot;.commentDate&quot;).css({&#039;display&#039; : &#039;none&#039;}); }
);});</description> <content:encoded><![CDATA[<p>Hello. I&#8217;am looking for this jQuery-Function in Mootools. Any Idea?</p><p>$(document).ready(function() {</p><p>$(&#8220;.commentBox&#8221;).hover(<br
/> function() { $(this).find(&#8220;.commentDate&#8221;).css({&#8216;display&#8217; : &#8216;inline&#8217;}); },<br
/> function() { $(this).find(&#8220;.commentDate&#8221;).css({&#8216;display&#8217; : &#8216;none&#8217;}); }<br
/> );</p><p>});</p> ]]></content:encoded> </item> <item><title>By: Sklep Zoologiczny</title><link>http://davidwalsh.name/jquery-hover-mootools/comment-page-1#comment-8196</link> <dc:creator>Sklep Zoologiczny</dc:creator> <pubDate>Thu, 12 Mar 2009 19:16:26 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=1618#comment-8196</guid> <description>It has potential! Got some idea, will share when finnished.</description> <content:encoded><![CDATA[<p>It has potential! Got some idea, will share when finnished.</p> ]]></content:encoded> </item> <item><title>By: Peter Higgins</title><link>http://davidwalsh.name/jquery-hover-mootools/comment-page-1#comment-8179</link> <dc:creator>Peter Higgins</dc:creator> <pubDate>Thu, 12 Mar 2009 00:29:01 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=1618#comment-8179</guid> <description>So I have to throw in my $0.02US --I implement this for Dojo based on the same &quot;wow, why do people get so excited about an API that already exists&quot; ... but I changed the .hover() API some:hover: function(over, out){
return this.onmouseenter(over).onmouseleave(out &#124;&#124; over);
}allowing you to do one function for both states:dojo.query(&quot;.blah&quot;).hover(function(e){
// is e.type mouseover or mouseleave ? decide
});Though I put it in my &quot;mini lib&quot; plugd:http://code.google.com/p/plugd/I even submitted a patch to jquery because I think the single function use makes sense and is even more &#039;rockstar&#039; than two inline functions:http://dev.jquery.com/ticket/3498Regards,
Peter Higgins</description> <content:encoded><![CDATA[<p>So I have to throw in my $0.02US &#8211;</p><p>I implement this for Dojo based on the same &#8220;wow, why do people get so excited about an API that already exists&#8221; &#8230; but I changed the .hover() API some:</p><p>hover: function(over, out){<br
/> return this.onmouseenter(over).onmouseleave(out || over);<br
/> }</p><p>allowing you to do one function for both states:</p><p>dojo.query(&#8220;.blah&#8221;).hover(function(e){<br
/> // is e.type mouseover or mouseleave ? decide<br
/> });</p><p>Though I put it in my &#8220;mini lib&#8221; plugd:</p><p><a
href="http://code.google.com/p/plugd/" rel="nofollow">http://code.google.com/p/plugd/</a></p><p>I even submitted a patch to jquery because I think the single function use makes sense and is even more &#8216;rockstar&#8217; than two inline functions:</p><p><a
href="http://dev.jquery.com/ticket/3498" rel="nofollow">http://dev.jquery.com/ticket/3498</a></p><p>Regards,<br
/> Peter Higgins</p> ]]></content:encoded> </item> <item><title>By: Aaron Newton</title><link>http://davidwalsh.name/jquery-hover-mootools/comment-page-1#comment-8175</link> <dc:creator>Aaron Newton</dc:creator> <pubDate>Wed, 11 Mar 2009 21:01:18 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=1618#comment-8175</guid> <description>As an exercise in demonstrating how easy it is to add your own syntax to MooTools, I think this post is totally fine and appropriate. None of us would ever do this for all the reasons pointed out in the comments above.My only comment is that it should return &quot;this&quot; for chaining:Element.implement({
&#039;hover&#039;: function(fn1,fn2) {
return this.addEvents({
&#039;mouseenter&#039;: function(e) {
fn1.attempt(e,this);
},
&#039;mouseleave&#039;: function(e) {
fn2.attempt(e,this);
}
})
}
}); </description> <content:encoded><![CDATA[<p>As an exercise in demonstrating how easy it is to add your own syntax to MooTools, I think this post is totally fine and appropriate. None of us would ever do this for all the reasons pointed out in the comments above.</p><p>My only comment is that it should return &#8220;this&#8221; for chaining:</p><p>Element.implement({<br
/> &#8216;hover&#8217;: function(fn1,fn2) {<br
/> return this.addEvents({<br
/> &#8216;mouseenter&#8217;: function(e) {<br
/> fn1.attempt(e,this);<br
/> },<br
/> &#8216;mouseleave&#8217;: function(e) {<br
/> fn2.attempt(e,this);<br
/> }<br
/> })<br
/> }<br
/> });</p> ]]></content:encoded> </item> <item><title>By: Corey</title><link>http://davidwalsh.name/jquery-hover-mootools/comment-page-1#comment-8171</link> <dc:creator>Corey</dc:creator> <pubDate>Wed, 11 Mar 2009 16:21:49 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=1618#comment-8171</guid> <description>Chris, you can do the same in jQuery also, you don&#039;t have to use &#039;hover()&#039;.el.mouseover(fn)
.mouseout(fn2); </description> <content:encoded><![CDATA[<p>Chris, you can do the same in jQuery also, you don&#8217;t have to use &#8216;hover()&#8217;.</p><p>el.mouseover(fn)<br
/> .mouseout(fn2);</p> ]]></content:encoded> </item> <item><title>By: David Walsh</title><link>http://davidwalsh.name/jquery-hover-mootools/comment-page-1#comment-8170</link> <dc:creator>David Walsh</dc:creator> <pubDate>Wed, 11 Mar 2009 15:45:33 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=1618#comment-8170</guid> <description>&lt;p&gt;Damn Lim, I had forgotten about Mooj.  You need to do a series of articles on that thing.&lt;/p&gt;</description> <content:encoded><![CDATA[<p>Damn Lim, I had forgotten about Mooj.  You need to do a series of articles on that thing.</p> ]]></content:encoded> </item> <item><title>By: Lim Chee Aun</title><link>http://davidwalsh.name/jquery-hover-mootools/comment-page-1#comment-8169</link> <dc:creator>Lim Chee Aun</dc:creator> <pubDate>Wed, 11 Mar 2009 15:41:17 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=1618#comment-8169</guid> <description>This looks kinda familiar :) &lt;a href=&quot;http://code.google.com/p/mooj/source/browse/trunk/mooj.js#83&quot; rel=&quot;nofollow&quot;&gt;http://code.google.com/p/mooj/source/browse/trunk/mooj.js#83&lt;/a&gt;</description> <content:encoded><![CDATA[<p>This looks kinda familiar :) <a
href="http://code.google.com/p/mooj/source/browse/trunk/mooj.js#83" rel="nofollow">http://code.google.com/p/mooj/source/browse/trunk/mooj.js#83</a></p> ]]></content:encoded> </item> <item><title>By: EmEhRKay</title><link>http://davidwalsh.name/jquery-hover-mootools/comment-page-1#comment-8168</link> <dc:creator>EmEhRKay</dc:creator> <pubDate>Wed, 11 Mar 2009 13:50:06 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=1618#comment-8168</guid> <description>Chris, that would be true if David&#039;s code was written as it were in your first post, but the function with the action is enclosed inside of the anonymous (already bound) function.</description> <content:encoded><![CDATA[<p>Chris, that would be true if David&#8217;s code was written as it were in your first post, but the function with the action is enclosed inside of the anonymous (already bound) function.</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 1/17 queries in 0.010 seconds using disk: basic
Object Caching 865/866 objects using disk: basic

Served from: davidwalsh.name @ 2012-02-09 05:33:14 -->
