<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Tue, 09 Jun 2026 12:50:02 +0000</lastBuildDate>
    <item>
      <title>(JavaScript) Rock Solid addEvent - oronm</title>
      <link>https://snipplr.com/view/1016/rock-solid-addevent</link>
      <description>&lt;p&gt;In the aftermath of the addEvent() recoding contest, a winner was announced. It was also further discussed in the particleTree November issue with another method provided (I wonâ€™t discuss it since itâ€™s copyrighted content and itâ€™s for paying customers only ;) ). However even with all the fuss going on, Iâ€™ve taken an innovative approach with some existing methods and combined them into a very powerful function. It also accomplishes these three core issues.&#13;
&#13;
    * Degrades on older browsers such as NS4 and IE5 mac&#13;
    * The this keyword remains in-tact&#13;
    * Avoids memory leaks in Microsoft Internet Explorer&#13;
&#13;
Since none of this is entirely revolutionary or actually originally written by me, Iâ€™m not going to take any further credit other than piecing together what was already out there.&#13;
Introducing, my addEvent()&#13;
&#13;
Here for your copy and pasting pleasure, it consists of three parts. 1) The addEvent() function itself which programatically adds to the 2) EventCache (originally written by Mark Wubben), and 3) an unload event is added to the window to run the EventCache â€˜flushâ€™ method.&lt;/p&gt;</description>
      <pubDate>Tue, 05 Sep 2006 08:52:39 UTC</pubDate>
      <guid>https://snipplr.com/view/1016/rock-solid-addevent</guid>
    </item>
  </channel>
</rss>
