<?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: MooTools Tip:&#160;Event.stop</title> <atom:link href="http://davidwalsh.name/mootools-event-stop/feed" rel="self" type="application/rss+xml" /><link>http://davidwalsh.name/mootools-event-stop</link> <description>Legendary scribbles about JavaScript, HTML5, AJAX, PHP, CSS, and ∞.</description> <lastBuildDate>Thu, 09 Feb 2012 09:28:55 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3</generator> <item><title>By: Paris</title><link>http://davidwalsh.name/mootools-event-stop/comment-page-1#comment-21606</link> <dc:creator>Paris</dc:creator> <pubDate>Sat, 11 Dec 2010 15:32:32 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4518#comment-21606</guid> <description>e.stop(); works for me as well. What I am looking for is a way to kill all the events (never to fire again). Would help a lot to deal with app &quot;crashes&quot; when timers and mouse, etc. events are involved.</description> <content:encoded><![CDATA[<p>e.stop(); works for me as well. What I am looking for is a way to kill all the events (never to fire again). Would help a lot to deal with app &#8220;crashes&#8221; when timers and mouse, etc. events are involved.</p> ]]></content:encoded> </item> <item><title>By: Mrrau</title><link>http://davidwalsh.name/mootools-event-stop/comment-page-1#comment-17457</link> <dc:creator>Mrrau</dc:creator> <pubDate>Fri, 07 May 2010 11:31:40 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4518#comment-17457</guid> <description>@Paul Schwarz:  Another example is, you can have plugins on page that do something with your elements, and don&#039;t have access to this functions. It can be more that one function connected to element, and from other sources than yours. So basically calling: myelement.fireEvent you will call all functions attached to the event, and you don&#039;t have to remember or search for it.</description> <content:encoded><![CDATA[<p>@Paul Schwarz:  Another example is, you can have plugins on page that do something with your elements, and don&#8217;t have access to this functions. It can be more that one function connected to element, and from other sources than yours. So basically calling: myelement.fireEvent you will call all functions attached to the event, and you don&#8217;t have to remember or search for it.</p> ]]></content:encoded> </item> <item><title>By: Mrrau</title><link>http://davidwalsh.name/mootools-event-stop/comment-page-1#comment-17456</link> <dc:creator>Mrrau</dc:creator> <pubDate>Fri, 07 May 2010 11:25:08 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4518#comment-17456</guid> <description>@Paul Schwarz:  Your solution require to remember what function is connected to event. Sometimes it&#039;s anonymous functions and you can&#039;t call it directly. Little example://add action to all links on page
$$(&#039;a&#039;).addEvent(&#039;click&#039;, function (e) {alert(&#039;My href is&#039;+this.get(&#039;href&#039;));});$$(&#039;a&#039;)[0].fireEvent(&#039;click&#039;);</description> <content:encoded><![CDATA[<p>@Paul Schwarz:  Your solution require to remember what function is connected to event. Sometimes it&#8217;s anonymous functions and you can&#8217;t call it directly. Little example:</p><p>//add action to all links on page<br
/> $$(&#8216;a&#8217;).addEvent(&#8216;click&#8217;, function (e) {alert(&#8216;My href is&#8217;+this.get(&#8216;href&#8217;));});</p><p>$$(&#8216;a&#8217;)[0].fireEvent(&#8216;click&#8217;);</p> ]]></content:encoded> </item> <item><title>By: Paul Schwarz</title><link>http://davidwalsh.name/mootools-event-stop/comment-page-1#comment-16306</link> <dc:creator>Paul Schwarz</dc:creator> <pubDate>Tue, 02 Mar 2010 13:18:56 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4518#comment-16306</guid> <description>Granted you may have some special reason for fake-firing an event in which case your solution is fine. But more generally a better practise is to have your event handler call a function. So if you need to make that function happen, just call your function from code rather than faking the event and tripping the event handler in a fake way. Maybe you can give an example of when it&#039;s not possible to use my suggestion?
Thanks,
Paul S</description> <content:encoded><![CDATA[<p>Granted you may have some special reason for fake-firing an event in which case your solution is fine. But more generally a better practise is to have your event handler call a function. So if you need to make that function happen, just call your function from code rather than faking the event and tripping the event handler in a fake way. Maybe you can give an example of when it&#8217;s not possible to use my suggestion?<br
/> Thanks,<br
/> Paul S</p> ]]></content:encoded> </item> <item><title>By: Hristo Genev</title><link>http://davidwalsh.name/mootools-event-stop/comment-page-1#comment-16081</link> <dc:creator>Hristo Genev</dc:creator> <pubDate>Fri, 12 Feb 2010 11:17:27 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4518#comment-16081</guid> <description>Great solution. I spent a day trying to find a solution on similar problem. David you can&#039;t imagine how much I love your blog.</description> <content:encoded><![CDATA[<p>Great solution. I spent a day trying to find a solution on similar problem. David you can&#8217;t imagine how much I love your blog.</p> ]]></content:encoded> </item> <item><title>By: Oliver Nassar</title><link>http://davidwalsh.name/mootools-event-stop/comment-page-1#comment-14985</link> <dc:creator>Oliver Nassar</dc:creator> <pubDate>Mon, 04 Jan 2010 18:02:17 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4518#comment-14985</guid> <description>I prefer the syntax, considering it saves a whole byte:
e &amp;&amp; e.stop();:)</description> <content:encoded><![CDATA[<p>I prefer the syntax, considering it saves a whole byte:<br
/> e &amp;&amp; e.stop();</p><p>:)</p> ]]></content:encoded> </item> <item><title>By: Ryan Florence</title><link>http://davidwalsh.name/mootools-event-stop/comment-page-1#comment-14970</link> <dc:creator>Ryan Florence</dc:creator> <pubDate>Mon, 04 Jan 2010 03:59:44 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4518#comment-14970</guid> <description>I do this all the time, it&#039;s always nice to see other developers handling it the same way.</description> <content:encoded><![CDATA[<p>I do this all the time, it&#8217;s always nice to see other developers handling it the same way.</p> ]]></content:encoded> </item> <item><title>By: Bob</title><link>http://davidwalsh.name/mootools-event-stop/comment-page-1#comment-14912</link> <dc:creator>Bob</dc:creator> <pubDate>Wed, 30 Dec 2009 19:35:46 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4518#comment-14912</guid> <description>@David Walsh:  Thanks, that&#039;s good info. I hadn&#039;t run into that as an issue, but will keep this in mind going forward.</description> <content:encoded><![CDATA[<p>@David Walsh:  Thanks, that&#8217;s good info. I hadn&#8217;t run into that as an issue, but will keep this in mind going forward.</p> ]]></content:encoded> </item> <item><title>By: Hamza</title><link>http://davidwalsh.name/mootools-event-stop/comment-page-1#comment-14911</link> <dc:creator>Hamza</dc:creator> <pubDate>Wed, 30 Dec 2009 18:47:31 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4518#comment-14911</guid> <description>nice trick,
I was facing this problem a lot of them,
Thanks.</description> <content:encoded><![CDATA[<p>nice trick,<br
/> I was facing this problem a lot of them,<br
/> Thanks.</p> ]]></content:encoded> </item> <item><title>By: Alexander</title><link>http://davidwalsh.name/mootools-event-stop/comment-page-1#comment-14899</link> <dc:creator>Alexander</dc:creator> <pubDate>Wed, 30 Dec 2009 13:42:34 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4518#comment-14899</guid> <description>I&#039;m using new Event(e).stop();</description> <content:encoded><![CDATA[<p>I&#8217;m using new Event(e).stop();</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.012 seconds using disk: basic
Object Caching 865/866 objects using disk: basic

Served from: davidwalsh.name @ 2012-02-09 04:39:51 -->
