<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
<channel>
	<title>Comments for Reign Drops Fall...</title>
	
	<link>http://www.reigndropsfall.net</link>
	<description>Ramblings from a hacker in Iowa</description>
	<lastBuildDate>Thu, 06 Jan 2011 21:43:34 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
	<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/reigndropsfallcomments" /><feedburner:info uri="reigndropsfallcomments" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Comment on Internet Explorer Event Handler Leaks by Bryan Forbes</title>
		<link>http://feedproxy.google.com/~r/reigndropsfallcomments/~3/b04YBFFojKQ/</link>
		<dc:creator>Bryan Forbes</dc:creator>
		<pubDate>Thu, 06 Jan 2011 21:43:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.reigndropsfall.net/?p=13953#comment-12982</guid>
		<description>Thank you for the link.  That's a really interesting and I'm surprised I didn't come across that article when I was doing research.  The one thing I wanted to do was explain why the leak happens from a behind the scenes perspective and get people to think about their event handlers in terms of reference chains, which is one thing the article you linked lacks.  The solution you linked is great, but I wanted to make sure I wasn't just giving people a fish and instead teaching them how to catch one ;).</description>
		<content:encoded><![CDATA[<p>Thank you for the link.  That&#8217;s a really interesting and I&#8217;m surprised I didn&#8217;t come across that article when I was doing research.  The one thing I wanted to do was explain why the leak happens from a behind the scenes perspective and get people to think about their event handlers in terms of reference chains, which is one thing the article you linked lacks.  The solution you linked is great, but I wanted to make sure I wasn&#8217;t just giving people a fish and instead teaching them how to catch one <img src='http://www.reigndropsfall.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> .</p>
<img src="http://feeds.feedburner.com/~r/reigndropsfallcomments/~4/b04YBFFojKQ" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://www.reigndropsfall.net/2011/01/05/internet-explorer-event-handler-leaks/comment-page-1/#comment-12982</feedburner:origLink></item>
	<item>
		<title>Comment on Internet Explorer Event Handler Leaks by Bryan Forbes</title>
		<link>http://feedproxy.google.com/~r/reigndropsfallcomments/~3/TcNfTcPcs3s/</link>
		<dc:creator>Bryan Forbes</dc:creator>
		<pubDate>Thu, 06 Jan 2011 21:37:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.reigndropsfall.net/?p=13953#comment-12980</guid>
		<description>Thanks for the head's up.  I'll try to keep track of when YUI releases 3.3.0 and re-run the test for it.</description>
		<content:encoded><![CDATA[<p>Thanks for the head&#8217;s up.  I&#8217;ll try to keep track of when YUI releases 3.3.0 and re-run the test for it.</p>
<img src="http://feeds.feedburner.com/~r/reigndropsfallcomments/~4/TcNfTcPcs3s" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://www.reigndropsfall.net/2011/01/05/internet-explorer-event-handler-leaks/comment-page-1/#comment-12980</feedburner:origLink></item>
	<item>
		<title>Comment on Internet Explorer Event Handler Leaks by Robbert Broersma</title>
		<link>http://feedproxy.google.com/~r/reigndropsfallcomments/~3/CUdkPiRskek/</link>
		<dc:creator>Robbert Broersma</dc:creator>
		<pubDate>Thu, 06 Jan 2011 14:44:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.reigndropsfall.net/?p=13953#comment-12977</guid>
		<description>The global reference approach has been suggested by Laurens van den Oever way back in 2005:
http://laurens.vd.oever.nl/weblog/items2005/closures/</description>
		<content:encoded><![CDATA[<p>The global reference approach has been suggested by Laurens van den Oever way back in 2005:<br />
<a href="http://laurens.vd.oever.nl/weblog/items2005/closures/" rel="nofollow">http://laurens.vd.oever.nl/weblog/items2005/closures/</a></p>
<img src="http://feeds.feedburner.com/~r/reigndropsfallcomments/~4/CUdkPiRskek" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://www.reigndropsfall.net/2011/01/05/internet-explorer-event-handler-leaks/comment-page-1/#comment-12977</feedburner:origLink></item>
	<item>
		<title>Comment on Internet Explorer Event Handler Leaks by Adam moore</title>
		<link>http://feedproxy.google.com/~r/reigndropsfallcomments/~3/2_Z0xSjZdzA/</link>
		<dc:creator>Adam moore</dc:creator>
		<pubDate>Thu, 06 Jan 2011 01:58:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.reigndropsfall.net/?p=13953#comment-12973</guid>
		<description>The YUI event system handles this correctly, but a single event listener is not being removed correctly in the 3.2.0 release. This bug has been addressed for the upcoming 3.3.0 release.</description>
		<content:encoded><![CDATA[<p>The YUI event system handles this correctly, but a single event listener is not being removed correctly in the 3.2.0 release. This bug has been addressed for the upcoming 3.3.0 release.</p>
<img src="http://feeds.feedburner.com/~r/reigndropsfallcomments/~4/2_Z0xSjZdzA" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://www.reigndropsfall.net/2011/01/05/internet-explorer-event-handler-leaks/comment-page-1/#comment-12973</feedburner:origLink></item>
	<item>
		<title>Comment on Adding Axis Titles to DojoX Charts by ttrenka (ttrenka)</title>
		<link>http://feedproxy.google.com/~r/reigndropsfallcomments/~3/SjYxWzjhT_A/</link>
		<dc:creator>ttrenka (ttrenka)</dc:creator>
		<pubDate>Thu, 12 Aug 2010 23:42:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.reigndropsfall.net/?p=9191#comment-12970</guid>
		<description>RT &lt;a rel="nofollow" href="http://twitter.com/BryanForbes"&gt;@BryanForbes&lt;/a&gt;: Adding Axis Titles to DojoX Charts: http://www.reigndropsfall.net/2010/08/12/dojox-charting-axis-titles/ #dojo #javascript #charting</description>
		<content:encoded><![CDATA[<p>RT <a rel="nofollow" href="http://twitter.com/BryanForbes">@BryanForbes</a>: Adding Axis Titles to DojoX Charts: <a href="http://www.reigndropsfall.net/2010/08/12/dojox-charting-axis-titles/" rel="nofollow">http://www.reigndropsfall.net/2010/08/12/dojox-charting-axis-titles/</a> #dojo #javascript #charting</p>
<img src="http://feeds.feedburner.com/~r/reigndropsfallcomments/~4/SjYxWzjhT_A" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://www.reigndropsfall.net/2010/08/12/dojox-charting-axis-titles/comment-page-1/#comment-12970</feedburner:origLink></item>
	<item>
		<title>Comment on Using Local Modules With a Cross-Domain Dojo Build by James Burke</title>
		<link>http://feedproxy.google.com/~r/reigndropsfallcomments/~3/qvFfJNgkjm0/</link>
		<dc:creator>James Burke</dc:creator>
		<pubDate>Thu, 08 Jul 2010 18:29:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.reigndropsfall.net/?p=1941#comment-12954</guid>
		<description>While the build system does not work referencing files on a CDN (it cannot do URL requests), you can create layers that mimic the ones on the CDN and just not use them, in addition, create discard layers that contain individual modules that you want to load from the CDN.</description>
		<content:encoded><![CDATA[<p>While the build system does not work referencing files on a CDN (it cannot do URL requests), you can create layers that mimic the ones on the CDN and just not use them, in addition, create discard layers that contain individual modules that you want to load from the CDN.</p>
<img src="http://feeds.feedburner.com/~r/reigndropsfallcomments/~4/qvFfJNgkjm0" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://www.reigndropsfall.net/2010/07/07/local-modules-with-xdomain/comment-page-1/#comment-12954</feedburner:origLink></item>
	<item>
		<title>Comment on Using Local Modules With a Cross-Domain Dojo Build by Bryan Forbes</title>
		<link>http://feedproxy.google.com/~r/reigndropsfallcomments/~3/HDvZCGedAJc/</link>
		<dc:creator>Bryan Forbes</dc:creator>
		<pubDate>Wed, 07 Jul 2010 20:59:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.reigndropsfall.net/?p=1941#comment-12953</guid>
		<description>In theory, it should be possible.  I haven't done it, but &lt;a href="http://archive.dojotoolkit.org/nightly/checkout/util/buildscripts/cdnBuild.txt" rel="nofollow"&gt;this document&lt;/a&gt; would be where to start.</description>
		<content:encoded><![CDATA[<p>In theory, it should be possible.  I haven&#8217;t done it, but <a href="http://archive.dojotoolkit.org/nightly/checkout/util/buildscripts/cdnBuild.txt" rel="nofollow">this document</a> would be where to start.</p>
<img src="http://feeds.feedburner.com/~r/reigndropsfallcomments/~4/HDvZCGedAJc" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://www.reigndropsfall.net/2010/07/07/local-modules-with-xdomain/comment-page-1/#comment-12953</feedburner:origLink></item>
	<item>
		<title>Comment on Using Local Modules With a Cross-Domain Dojo Build by Eugene Lazutkin</title>
		<link>http://feedproxy.google.com/~r/reigndropsfallcomments/~3/BxaWsX6zDkI/</link>
		<dc:creator>Eugene Lazutkin</dc:creator>
		<pubDate>Wed, 07 Jul 2010 20:20:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.reigndropsfall.net/?p=1941#comment-12952</guid>
		<description>Very useful article.

What if you have a lot of local modules? I wonder if you can do local builds against Dojo hosted on CDNs. Did you try it?</description>
		<content:encoded><![CDATA[<p>Very useful article.</p>
<p>What if you have a lot of local modules? I wonder if you can do local builds against Dojo hosted on CDNs. Did you try it?</p>
<img src="http://feeds.feedburner.com/~r/reigndropsfallcomments/~4/BxaWsX6zDkI" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://www.reigndropsfall.net/2010/07/07/local-modules-with-xdomain/comment-page-1/#comment-12952</feedburner:origLink></item>
	<item>
		<title>Comment on Monkey patching by Bryan Forbes</title>
		<link>http://feedproxy.google.com/~r/reigndropsfallcomments/~3/b0ugLO66Yuw/</link>
		<dc:creator>Bryan Forbes</dc:creator>
		<pubDate>Thu, 17 Jun 2010 17:14:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.reigndropsfall.net/?p=889#comment-12950</guid>
		<description>You're right, however there are a few things to think about:

First, if you save off the prototype method and something monkey patches afterwards, you get the monkey patched version of the method which you might not be expecting.

Second, each time you call myAdder.add with your version, the interpreter has to look up the global &lt;code&gt;Adder&lt;/code&gt; object, then it has to look up its &lt;code&gt;prototype&lt;/code&gt; object, and then its &lt;code&gt;add&lt;/code&gt; function (which is just an object), and finally it has to find and call its &lt;code&gt;call&lt;/code&gt; function.  This can be a lot of work for such a simple method depending on how many times the method will be called.

Third, with the introduction of a closure you use a bit more memory.  Combined with my previous point, this will be something you have to decide: speed or memory use.

By the way, if you use your way you won't need the function declaration and execution around your masking since you're not saving anything off.</description>
		<content:encoded><![CDATA[<p>You&#8217;re right, however there are a few things to think about:</p>
<p>First, if you save off the prototype method and something monkey patches afterwards, you get the monkey patched version of the method which you might not be expecting.</p>
<p>Second, each time you call myAdder.add with your version, the interpreter has to look up the global <code>Adder</code> object, then it has to look up its <code>prototype</code> object, and then its <code>add</code> function (which is just an object), and finally it has to find and call its <code>call</code> function.  This can be a lot of work for such a simple method depending on how many times the method will be called.</p>
<p>Third, with the introduction of a closure you use a bit more memory.  Combined with my previous point, this will be something you have to decide: speed or memory use.</p>
<p>By the way, if you use your way you won&#8217;t need the function declaration and execution around your masking since you&#8217;re not saving anything off.</p>
<img src="http://feeds.feedburner.com/~r/reigndropsfallcomments/~4/b0ugLO66Yuw" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://www.reigndropsfall.net/2010/06/15/monkey-patching/comment-page-1/#comment-12950</feedburner:origLink></item>
	<item>
		<title>Comment on Monkey patching by Bobby</title>
		<link>http://feedproxy.google.com/~r/reigndropsfallcomments/~3/VL4KYCvjJC0/</link>
		<dc:creator>Bobby</dc:creator>
		<pubDate>Thu, 17 Jun 2010 15:17:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.reigndropsfall.net/?p=889#comment-12949</guid>
		<description>For MP'ing object instances where you saved the original method in oldAdd, couldn't you have just called the prototyped method?

(function(){
	myAdder.add = function(what){
		return Adder.prototype.add.call(this, what) + 20;
	};
})();
myAdder.add(5);

Seems to work without adding a new variable.</description>
		<content:encoded><![CDATA[<p>For MP&#8217;ing object instances where you saved the original method in oldAdd, couldn&#8217;t you have just called the prototyped method?</p>
<p>(function(){<br />
	myAdder.add = function(what){<br />
		return Adder.prototype.add.call(this, what) + 20;<br />
	};<br />
})();<br />
myAdder.add(5);</p>
<p>Seems to work without adding a new variable.</p>
<img src="http://feeds.feedburner.com/~r/reigndropsfallcomments/~4/VL4KYCvjJC0" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://www.reigndropsfall.net/2010/06/15/monkey-patching/comment-page-1/#comment-12949</feedburner:origLink></item>
</channel>
</rss>
