<?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"
	>
<channel>
	<title>Comments on: Show love to the object literal</title>
	<atom:link href="http://www.wait-till-i.com/2006/02/16/show-love-to-the-object-literal/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.wait-till-i.com/2006/02/16/show-love-to-the-object-literal/</link>
	<description>Chris Heilmann - Accessibilty, Web Development and Pragmatism - can talk, will travel</description>
	<pubDate>Sun, 06 Jul 2008 19:53:21 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Michael Prescott</title>
		<link>http://www.wait-till-i.com/2006/02/16/show-love-to-the-object-literal/#comment-3473</link>
		<dc:creator>Michael Prescott</dc:creator>
		<pubDate>Thu, 07 Dec 2006 14:38:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.wait-till-i.com/?p=239#comment-3473</guid>
		<description>I recently stumbled upon some usage of Object Literals and found your site while trying to learn why.  I still don't understand why object literals are better than using prototype.</description>
		<content:encoded><![CDATA[<p>I recently stumbled upon some usage of Object Literals and found your site while trying to learn why.  I still don&#8217;t understand why object literals are better than using prototype.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.wait-till-i.com/2006/02/16/show-love-to-the-object-literal/#comment-3369</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Sat, 11 Nov 2006 19:49:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.wait-till-i.com/?p=239#comment-3369</guid>
		<description>Bit late but in case anyone has the same thing as Merth, the line you'll need is:
&lt;code&gt;Answer: alert(&lt;em&gt;this&lt;/em&gt;.objectProperty);
&lt;/code&gt;
That'll reference the current instance of the object in case you've got multiples.</description>
		<content:encoded><![CDATA[<p>Bit late but in case anyone has the same thing as Merth, the line you&#8217;ll need is:<br />
<code>Answer: alert(&lt;em&gt;this&lt;/em&gt;.objectProperty);<br />
</code><br />
That&#8217;ll reference the current instance of the object in case you&#8217;ve got multiples.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Merth</title>
		<link>http://www.wait-till-i.com/2006/02/16/show-love-to-the-object-literal/#comment-2822</link>
		<dc:creator>Merth</dc:creator>
		<pubDate>Thu, 20 Jul 2006 15:59:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.wait-till-i.com/?p=239#comment-2822</guid>
		<description>thanks, but what if i have 2 instances of that object at the same time?</description>
		<content:encoded><![CDATA[<p>thanks, but what if i have 2 instances of that object at the same time?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Merth</title>
		<link>http://www.wait-till-i.com/2006/02/16/show-love-to-the-object-literal/#comment-2821</link>
		<dc:creator>Merth</dc:creator>
		<pubDate>Thu, 20 Jul 2006 15:25:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.wait-till-i.com/?p=239#comment-2821</guid>
		<description>Hi Chris, awesome article. But i am having issues with object scope i think.

MyObject = {
objectProperty:"HELLO",

applyAction : function(item) {
item.onmouseover = this.doOver;
},

doOver : function() {
alert(objectProperty);     
}     
}

all i get in alert window is "undefined". How can i make javscript to alert objectProperty without assigning objectProperty to a global variable?

Answer: alert(MyObject.objectProperty);
</description>
		<content:encoded><![CDATA[<p>Hi Chris, awesome article. But i am having issues with object scope i think.</p>
<p>MyObject = {<br />
objectProperty:&#8221;HELLO&#8221;,</p>
<p>applyAction : function(item) {<br />
item.onmouseover = this.doOver;<br />
},</p>
<p>doOver : function() {<br />
alert(objectProperty);     <br />
}     <br />
}</p>
<p>all i get in alert window is &#8220;undefined&#8221;. How can i make javscript to alert objectProperty without assigning objectProperty to a global variable?</p>
<p>Answer: alert(MyObject.objectProperty);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://www.wait-till-i.com/2006/02/16/show-love-to-the-object-literal/#comment-2450</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Wed, 31 May 2006 10:16:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.wait-till-i.com/?p=239#comment-2450</guid>
		<description>Check out &lt;a href="http://ajile.sf.net/"&gt;Ajile&lt;/a&gt;. It's an excellent approach to namespaces (code organization) in JavaScript.</description>
		<content:encoded><![CDATA[<p>Check out <a href="http://ajile.sf.net/">Ajile</a>. It&#8217;s an excellent approach to namespaces (code organization) in JavaScript.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
