<?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/"
		>
<channel>
	<title>Comments on: A (Re)Introduction to JavaScript</title>
	<atom:link href="http://ajaxian.com/archives/a-reintroduction-to-javascript/feed" rel="self" type="application/rss+xml" />
	<link>http://ajaxian.com/archives/a-reintroduction-to-javascript</link>
	<description>Cleaning up the web with Ajax</description>
	<lastBuildDate>Thu, 17 May 2012 07:43:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Ftp Software Free Download</title>
		<link>http://ajaxian.com/archives/a-reintroduction-to-javascript/comment-page-1#comment-171490</link>
		<dc:creator>Ftp Software Free Download</dc:creator>
		<pubDate>Thu, 09 Nov 2006 00:15:13 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=967#comment-171490</guid>
		<description>&lt;strong&gt;Ftp Software Free Download&lt;/strong&gt;

Like what you have to say. Your blog makes good since to me.</description>
		<content:encoded><![CDATA[<p><strong>Ftp Software Free Download</strong></p>
<p>Like what you have to say. Your blog makes good since to me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank</title>
		<link>http://ajaxian.com/archives/a-reintroduction-to-javascript/comment-page-1#comment-4560</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Mon, 13 Mar 2006 04:44:04 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=967#comment-4560</guid>
		<description>I think the memory leak example the author cites is not actually a memory leak:

&lt;code&gt;
function addHandler() {
&#160;var el = document.getElementById(&#039;el&#039;);
&#160;el.onclick = function() {
&#160;&#160;this.style.backgroundColor = &#039;red&#039;;
&#160;}
}&lt;/code&gt;

The anonymous function does &lt;b&gt;not&lt;/b&gt; reference &lt;b&gt;el&lt;/b&gt;, but the &#039;this&#039; keyword which is context dependent. When the onclick event is fired, the HTML node &#039;el&#039; would be considered &#039;this&#039;, but it is only implicit - not an explicit link.

Had the example been formed as the following, then yes, I can see a potential memory leak.
&lt;code&gt;
function addHandler() {
&#160;var el = document.getElementById(&#039;el&#039;);
&#160;el.onclick = function() {
&#160;&#160;&lt;b&gt;el&lt;/b&gt;.style.backgroundColor = &#039;red&#039;;
&#160;}
}
&lt;/code&gt;

Or am I missing something?</description>
		<content:encoded><![CDATA[<p>I think the memory leak example the author cites is not actually a memory leak:</p>
<p><code><br />
function addHandler() {<br />
&nbsp;var el = document.getElementById('el');<br />
&nbsp;el.onclick = function() {<br />
&nbsp;&nbsp;this.style.backgroundColor = 'red';<br />
&nbsp;}<br />
}</code></p>
<p>The anonymous function does <b>not</b> reference <b>el</b>, but the &#8216;this&#8217; keyword which is context dependent. When the onclick event is fired, the HTML node &#8216;el&#8217; would be considered &#8216;this&#8217;, but it is only implicit &#8211; not an explicit link.</p>
<p>Had the example been formed as the following, then yes, I can see a potential memory leak.<br />
<code><br />
function addHandler() {<br />
&nbsp;var el = document.getElementById('el');<br />
&nbsp;el.onclick = function() {<br />
&nbsp;&nbsp;<b>el</b>.style.backgroundColor = 'red';<br />
&nbsp;}<br />
}<br />
</code></p>
<p>Or am I missing something?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: linb</title>
		<link>http://ajaxian.com/archives/a-reintroduction-to-javascript/comment-page-1#comment-4488</link>
		<dc:creator>linb</dc:creator>
		<pubDate>Sat, 11 Mar 2006 02:40:08 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=967#comment-4488</guid>
		<description>A nice JS tutorial.</description>
		<content:encoded><![CDATA[<p>A nice JS tutorial.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: LT People &#187; Blog Archive &#187; A (Re)Introduction to JavaScript</title>
		<link>http://ajaxian.com/archives/a-reintroduction-to-javascript/comment-page-1#comment-4453</link>
		<dc:creator>LT People &#187; Blog Archive &#187; A (Re)Introduction to JavaScript</dc:creator>
		<pubDate>Fri, 10 Mar 2006 08:37:02 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=967#comment-4453</guid>
		<description>[...] Ð¡Ð»Ð°Ð¹Ð´Ñ‹ Ñ? Ð²Ñ‹Ñ?Ñ‚ÑƒÐ¿Ð»ÐµÐ½Ð¸Ñ? Simon Willison Ð½Ð° ETech. ÐžÑ‡ÐµÐ½ÑŒ Ð¸Ð½Ñ‚ÐµÑ€ÐµÑ?Ð½Ð¾ Ð´Ð»Ñ? Ð¿Ñ€Ð¾Ñ?Ð¼Ð¾Ñ‚Ñ€Ð° Ð¸ Ð¾Ñ†ÐµÐ½ÐºÐ¸ Ñ?Ð²Ð¾Ð¸Ñ… Ð·Ð½Ð°Ð½Ð¸Ð¹ Ð² JavaScript. http://ajaxian.com/archives/a-reintroduction-to-javascript [...]</description>
		<content:encoded><![CDATA[<p>[...] Ð¡Ð»Ð°Ð¹Ð´Ñ‹ Ñ? Ð²Ñ‹Ñ?Ñ‚ÑƒÐ¿Ð»ÐµÐ½Ð¸Ñ? Simon Willison Ð½Ð° ETech. ÐžÑ‡ÐµÐ½ÑŒ Ð¸Ð½Ñ‚ÐµÑ€ÐµÑ?Ð½Ð¾ Ð´Ð»Ñ? Ð¿Ñ€Ð¾Ñ?Ð¼Ð¾Ñ‚Ñ€Ð° Ð¸ Ð¾Ñ†ÐµÐ½ÐºÐ¸ Ñ?Ð²Ð¾Ð¸Ñ… Ð·Ð½Ð°Ð½Ð¸Ð¹ Ð² JavaScript. <a href="http://ajaxian.com/archives/a-reintroduction-to-javascript" rel="nofollow">http://ajaxian.com/archives/a-reintroduction-to-javascript</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Beh Teik Hooi</title>
		<link>http://ajaxian.com/archives/a-reintroduction-to-javascript/comment-page-1#comment-4434</link>
		<dc:creator>Beh Teik Hooi</dc:creator>
		<pubDate>Fri, 10 Mar 2006 00:32:10 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=967#comment-4434</guid>
		<description>Hey, that&#039;s a cool way of re-learning javascript and appreciate that you used the Twin Towers (our country landmark) on your slides. Thanks.</description>
		<content:encoded><![CDATA[<p>Hey, that&#8217;s a cool way of re-learning javascript and appreciate that you used the Twin Towers (our country landmark) on your slides. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mikepk</title>
		<link>http://ajaxian.com/archives/a-reintroduction-to-javascript/comment-page-1#comment-4432</link>
		<dc:creator>mikepk</dc:creator>
		<pubDate>Thu, 09 Mar 2006 22:30:54 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=967#comment-4432</guid>
		<description>I&#039;ve written a series of &#039;learning javascript&#039; articles on my blog (called javascript-magic-ninja-foo) over the past few months now. I never really got enough interest to release the library but I&#039;ve gotten feedback that some people seem to like the articles. The intro is &lt;a href=&quot;http://yajaf.blogspot.com/2006/01/javascript-magic-ninja-foo.html&quot; rel=&quot;nofollow&quot;&gt; here&lt;/a&gt; and the articles span the last couple months.

-mikepk</description>
		<content:encoded><![CDATA[<p>I&#8217;ve written a series of &#8216;learning javascript&#8217; articles on my blog (called javascript-magic-ninja-foo) over the past few months now. I never really got enough interest to release the library but I&#8217;ve gotten feedback that some people seem to like the articles. The intro is <a href="http://yajaf.blogspot.com/2006/01/javascript-magic-ninja-foo.html" rel="nofollow"> here</a> and the articles span the last couple months.</p>
<p>-mikepk</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CrÃ³nica de una vida &#187; Blog Archive &#187; IntroducciÃ³n a Javascript</title>
		<link>http://ajaxian.com/archives/a-reintroduction-to-javascript/comment-page-1#comment-4427</link>
		<dc:creator>CrÃ³nica de una vida &#187; Blog Archive &#187; IntroducciÃ³n a Javascript</dc:creator>
		<pubDate>Thu, 09 Mar 2006 20:15:32 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=967#comment-4427</guid>
		<description>[...] [V&#237;a Ajaxian] [...]</description>
		<content:encoded><![CDATA[<p>[...] [V&iacute;a Ajaxian] [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: A (Re)-Introduction to JavaScript.</title>
		<link>http://ajaxian.com/archives/a-reintroduction-to-javascript/comment-page-1#comment-4411</link>
		<dc:creator>A (Re)-Introduction to JavaScript.</dc:creator>
		<pubDate>Thu, 09 Mar 2006 08:49:03 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=967#comment-4411</guid>
		<description>[...] A (Re)-Introduction to JavaScript &#8211; by Simon Willison via Ajaxian [...]</description>
		<content:encoded><![CDATA[<p>[...] A (Re)-Introduction to JavaScript &#8211; by Simon Willison via Ajaxian [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

