<?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: Object-Oriented JavaScript Tip: Creating static methods, instance methods</title>
	<atom:link href="http://blog.anselmbradford.com/2009/04/09/object-oriented-javascript-tip-creating-static-methods-instance-methods/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.anselmbradford.com/2009/04/09/object-oriented-javascript-tip-creating-static-methods-instance-methods/</link>
	<description>wrangling the Internet's wildest</description>
	<lastBuildDate>Fri, 16 Dec 2011 14:20:21 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Rich</title>
		<link>http://blog.anselmbradford.com/2009/04/09/object-oriented-javascript-tip-creating-static-methods-instance-methods/comment-page-1/#comment-29696</link>
		<dc:creator>Rich</dc:creator>
		<pubDate>Fri, 16 Dec 2011 14:20:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.anselmbradford.com/?p=777#comment-29696</guid>
		<description>Good explanation...thanks!</description>
		<content:encoded><![CDATA[<p>Good explanation&#8230;thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ans</title>
		<link>http://blog.anselmbradford.com/2009/04/09/object-oriented-javascript-tip-creating-static-methods-instance-methods/comment-page-1/#comment-24384</link>
		<dc:creator>Ans</dc:creator>
		<pubDate>Thu, 04 Aug 2011 09:07:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.anselmbradford.com/?p=777#comment-24384</guid>
		<description>Hi Boonga,

Just looking over your code it looks like you are defining Person, but then trying to override the function on Student, not Person.</description>
		<content:encoded><![CDATA[<p>Hi Boonga,</p>
<p>Just looking over your code it looks like you are defining Person, but then trying to override the function on Student, not Person.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Boonga Master</title>
		<link>http://blog.anselmbradford.com/2009/04/09/object-oriented-javascript-tip-creating-static-methods-instance-methods/comment-page-1/#comment-24340</link>
		<dc:creator>Boonga Master</dc:creator>
		<pubDate>Tue, 02 Aug 2011 23:41:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.anselmbradford.com/?p=777#comment-24340</guid>
		<description>how to override instance method &quot;findLoc&quot;

function Person(gender) {
	this.name = &#039;Generic Name&#039;;
	this.gender = gender;
	this.active = false;
	this.findLoc = function(){
		return &quot;Antartica&quot;;
	};
	var p = &#039;i am private variable&#039;;
	alert(&#039;Person instantiated&#039;);
}

// should override??? &lt;--- does not work!
Student.prototype.findLoc = function(){
		return &quot;America and &quot;+Object.prototype.call(this);
}</description>
		<content:encoded><![CDATA[<p>how to override instance method &#8220;findLoc&#8221;</p>
<p>function Person(gender) {<br />
	this.name = &#8216;Generic Name&#8217;;<br />
	this.gender = gender;<br />
	this.active = false;<br />
	this.findLoc = function(){<br />
		return &#8220;Antartica&#8221;;<br />
	};<br />
	var p = &#8216;i am private variable&#8217;;<br />
	alert(&#8216;Person instantiated&#8217;);<br />
}</p>
<p>// should override??? &lt;&#8212; does not work!<br />
Student.prototype.findLoc = function(){<br />
		return &quot;America and &quot;+Object.prototype.call(this);<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ans</title>
		<link>http://blog.anselmbradford.com/2009/04/09/object-oriented-javascript-tip-creating-static-methods-instance-methods/comment-page-1/#comment-3982</link>
		<dc:creator>Ans</dc:creator>
		<pubDate>Wed, 21 Oct 2009 03:44:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.anselmbradford.com/?p=777#comment-3982</guid>
		<description>Hi Victor,

Hmm... I would consider them instance methods, since they are accessible through instances of a class (albeit all instances), whereas a static method is accessible in the class itself.</description>
		<content:encoded><![CDATA[<p>Hi Victor,</p>
<p>Hmm&#8230; I would consider them instance methods, since they are accessible through instances of a class (albeit all instances), whereas a static method is accessible in the class itself.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Victor</title>
		<link>http://blog.anselmbradford.com/2009/04/09/object-oriented-javascript-tip-creating-static-methods-instance-methods/comment-page-1/#comment-3979</link>
		<dc:creator>Victor</dc:creator>
		<pubDate>Wed, 21 Oct 2009 03:25:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.anselmbradford.com/?p=777#comment-3979</guid>
		<description>I&#039;m newbie on JavaScript and there&#039;s something that&#039;s not clear to me.  It&#039;s about prototyping.

I&#039;m reading &quot;JavaScript, The Definitive Guide&quot; and what I undestand is that methods/properties created using prototype apear has they were part of the instance but they really aren&#039;t.  They&#039;re common to all instances from the particular object.

So my question is if they&#039;re considered instance or static.

Thanks,</description>
		<content:encoded><![CDATA[<p>I&#8217;m newbie on JavaScript and there&#8217;s something that&#8217;s not clear to me.  It&#8217;s about prototyping.</p>
<p>I&#8217;m reading &#8220;JavaScript, The Definitive Guide&#8221; and what I undestand is that methods/properties created using prototype apear has they were part of the instance but they really aren&#8217;t.  They&#8217;re common to all instances from the particular object.</p>
<p>So my question is if they&#8217;re considered instance or static.</p>
<p>Thanks,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shane</title>
		<link>http://blog.anselmbradford.com/2009/04/09/object-oriented-javascript-tip-creating-static-methods-instance-methods/comment-page-1/#comment-3314</link>
		<dc:creator>Shane</dc:creator>
		<pubDate>Tue, 06 Oct 2009 02:29:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.anselmbradford.com/?p=777#comment-3314</guid>
		<description>I was looking for a way to create static methods with Dojo and came across this post.  Great explanation!</description>
		<content:encoded><![CDATA[<p>I was looking for a way to create static methods with Dojo and came across this post.  Great explanation!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mikael Kindborg</title>
		<link>http://blog.anselmbradford.com/2009/04/09/object-oriented-javascript-tip-creating-static-methods-instance-methods/comment-page-1/#comment-1501</link>
		<dc:creator>Mikael Kindborg</dc:creator>
		<pubDate>Fri, 07 Aug 2009 18:51:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.anselmbradford.com/?p=777#comment-1501</guid>
		<description>Thanks for the clear and concise article!</description>
		<content:encoded><![CDATA[<p>Thanks for the clear and concise article!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

