<?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: 3 ways to define a JavaScript class</title>
	<atom:link href="http://www.phpied.com/3-ways-to-define-a-javascript-class/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phpied.com/3-ways-to-define-a-javascript-class/</link>
	<description>Stoyan&#039;s blog about &#60;a href=&#34;/category/xhtml&#34; class=&#34;tag-minor&#34;&#62;(x)html(5)&#60;/a&#62;, &#60;a href=&#34;/category/ajax&#34; class=&#34;tag-major&#34;&#62;ajax&#60;/a&#62;, &#60;a href=&#34;/category/bookmarklets&#34; class=&#34;tag-major&#34;&#62;bookmarklets&#60;/a&#62;, &#60;a href=&#34;/category/browsers&#34; class=&#34;tag-minor&#34;&#62;browsers&#60;/a&#62;, &#60;a href=&#34;/category/css&#34; class=&#34;tag-normal&#34;&#62;css&#60;/a&#62;, &#60;a href=&#34;/category/firebug&#34; class=&#34;tag-minor&#34;&#62;firebug&#60;/a&#62;, &#60;a href=&#34;/category/javascript&#34; class=&#34;tag-numero-uno&#34;&#62;javascript&#60;/a&#62;, &#60;a href=&#34;/category/json&#34; class=&#34;tag-normal&#34;&#62;json&#60;/a&#62;, &#60;a href=&#34;/category/mdb2&#34; class=&#34;tag-minor&#34;&#62;mdb2&#60;/a&#62;, &#60;a href=&#34;/category/mysql&#34; class=&#34;tag-normal&#34;&#62;mysql&#60;/a&#62;, &#60;a href=&#34;/category/pear&#34; class=&#34;tag-numero-uno&#34;&#62;pear&#60;/a&#62;, &#60;a href=&#34;/category/performance&#34; class=&#34;tag-major&#34;&#62;performance&#60;/a&#62;, &#60;a href=&#34;/category/php&#34; class=&#34;tag-numero-uno&#34;&#62;php&#60;/a&#62;, &#60;a href=&#34;/category/phpbb&#34; class=&#34;tag-major&#34;&#62;phpbb&#60;/a&#62;, &#60;a href=&#34;/category/tools&#34; class=&#34;tag-normal&#34;&#62;tools&#60;/a&#62;, &#60;a href=&#34;/category/yslow&#34; class=&#34;tag-minor&#34;&#62;yslow&#60;/a&#62;, &#60;a href=&#34;/category/yui&#34; class=&#34;tag-normal&#34;&#62;yui&#60;/a&#62;, &#60;a href=&#34;/category/writing&#34; class=&#34;tag-minor&#34;&#62;writing&#60;/a&#62;, &#60;a href=&#34;/category/music&#34; class=&#34;tag-major&#34;&#62;music&#60;/a&#62;,... &#60;a href=&#34;/category/life-and-everything&#34; class=&#34;tag-normal&#34;&#62;life and everything&#60;/a&#62;.</description>
	<lastBuildDate>Sat, 11 Feb 2012 14:07:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	<item>
		<title>By: Dan</title>
		<link>http://www.phpied.com/3-ways-to-define-a-javascript-class/#comment-81588</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Tue, 07 Feb 2012 15:21:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/3-ways-to-define-a-javascript-class/#comment-81588</guid>
		<description>Awesome article. Everything you need to know, in as many words as necessary.</description>
		<content:encoded><![CDATA[<p>Awesome article. Everything you need to know, in as many words as necessary.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mayank</title>
		<link>http://www.phpied.com/3-ways-to-define-a-javascript-class/#comment-81583</link>
		<dc:creator>mayank</dc:creator>
		<pubDate>Tue, 07 Feb 2012 10:34:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/3-ways-to-define-a-javascript-class/#comment-81583</guid>
		<description>Great article....simple and informative.
thnx</description>
		<content:encoded><![CDATA[<p>Great article&#8230;.simple and informative.<br />
thnx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anonymous</title>
		<link>http://www.phpied.com/3-ways-to-define-a-javascript-class/#comment-81573</link>
		<dc:creator>anonymous</dc:creator>
		<pubDate>Sun, 05 Feb 2012 23:49:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/3-ways-to-define-a-javascript-class/#comment-81573</guid>
		<description>well then wtf is it when they put

&quot;

(function(){

...

})

&quot;

as per several advanced javascript files, including jquery, that I&#039;ve seen.</description>
		<content:encoded><![CDATA[<p>well then wtf is it when they put</p>
<p>&#8221;</p>
<p>(function(){</p>
<p>&#8230;</p>
<p>})</p>
<p>&#8221;</p>
<p>as per several advanced javascript files, including jquery, that I&#8217;ve seen.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harvest stuff for GSoC: Week 7! &#124; Dylan McCall</title>
		<link>http://www.phpied.com/3-ways-to-define-a-javascript-class/#comment-81370</link>
		<dc:creator>Harvest stuff for GSoC: Week 7! &#124; Dylan McCall</dc:creator>
		<pubDate>Wed, 18 Jan 2012 21:07:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/3-ways-to-define-a-javascript-class/#comment-81370</guid>
		<description>[...] I am back to thinking it&#8217;s a pretty cool scripting language. That is mainly thanks to an excellent blog post by Stoyan Stefanov, all about doing classes in Javascript. Everything is an object, so of course we don&#8217;t need a [...]</description>
		<content:encoded><![CDATA[<p>[...] I am back to thinking it&#8217;s a pretty cool scripting language. That is mainly thanks to an excellent blog post by Stoyan Stefanov, all about doing classes in Javascript. Everything is an object, so of course we don&#8217;t need a [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mubbasher Mukhtar</title>
		<link>http://www.phpied.com/3-ways-to-define-a-javascript-class/#comment-81327</link>
		<dc:creator>Mubbasher Mukhtar</dc:creator>
		<pubDate>Fri, 13 Jan 2012 22:28:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/3-ways-to-define-a-javascript-class/#comment-81327</guid>
		<description>Thanks man... you saved the day. :)

// anti-pattern! keep reading...

THIS LINE OF YOURS show that you understand programmers well and you are a good writer..</description>
		<content:encoded><![CDATA[<p>Thanks man&#8230; you saved the day. <img src='http://www.phpied.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>// anti-pattern! keep reading&#8230;</p>
<p>THIS LINE OF YOURS show that you understand programmers well and you are a good writer..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://www.phpied.com/3-ways-to-define-a-javascript-class/#comment-81319</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Thu, 12 Jan 2012 19:37:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/3-ways-to-define-a-javascript-class/#comment-81319</guid>
		<description>I usually use method 1.2, with the prototypes directly underneath the main function, but indented a step further. It tricks me into thinking I am using python-like classes (which I like)</description>
		<content:encoded><![CDATA[<p>I usually use method 1.2, with the prototypes directly underneath the main function, but indented a step further. It tricks me into thinking I am using python-like classes (which I like)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Clements</title>
		<link>http://www.phpied.com/3-ways-to-define-a-javascript-class/#comment-81190</link>
		<dc:creator>David Clements</dc:creator>
		<pubDate>Tue, 10 Jan 2012 01:29:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/3-ways-to-define-a-javascript-class/#comment-81190</guid>
		<description>A better alternative to 3, new function is to return an object literal from within a function, eg

var apple = function () {

return {
    type: &#039;macintosh&#039;,
    color: &#039;red&#039;,
    getInfo: function () {
        return this.color + &#039; &#039; this.type + &#039; apple&#039;;
  }
};

}

as per http://yuiblog.com/blog/2006/11/13/javascript-we-hardly-new-ya/</description>
		<content:encoded><![CDATA[<p>A better alternative to 3, new function is to return an object literal from within a function, eg</p>
<p>var apple = function () {</p>
<p>return {<br />
    type: &#8216;macintosh&#8217;,<br />
    color: &#8216;red&#8217;,<br />
    getInfo: function () {<br />
        return this.color + &#8216; &#8216; this.type + &#8216; apple&#8217;;<br />
  }<br />
};</p>
<p>}</p>
<p>as per <a href="http://yuiblog.com/blog/2006/11/13/javascript-we-hardly-new-ya/" rel="nofollow">http://yuiblog.com/blog/2006/11/13/javascript-we-hardly-new-ya/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: inexpensive vps</title>
		<link>http://www.phpied.com/3-ways-to-define-a-javascript-class/#comment-81159</link>
		<dc:creator>inexpensive vps</dc:creator>
		<pubDate>Fri, 06 Jan 2012 19:19:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/3-ways-to-define-a-javascript-class/#comment-81159</guid>
		<description>Wonderful work! That is the kind of info that should be shared across the internet. Shame on Google for now not positioning this put up higher! Come on over and discuss with my web site . Thank you =)</description>
		<content:encoded><![CDATA[<p>Wonderful work! That is the kind of info that should be shared across the internet. Shame on Google for now not positioning this put up higher! Come on over and discuss with my web site . Thank you =)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 3 ways to define a JavaScript class &#124; Karipcin Developer Blog</title>
		<link>http://www.phpied.com/3-ways-to-define-a-javascript-class/#comment-80871</link>
		<dc:creator>3 ways to define a JavaScript class &#124; Karipcin Developer Blog</dc:creator>
		<pubDate>Tue, 03 Jan 2012 06:24:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/3-ways-to-define-a-javascript-class/#comment-80871</guid>
		<description>[...] http://www.phpied.com/3-ways-to-define-a-javascript-class/   This entry was posted in Genel. Bookmark the permalink.    &#8592; fcbkcomplete [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://www.phpied.com/3-ways-to-define-a-javascript-class/" rel="nofollow">http://www.phpied.com/3-ways-to-define-a-javascript-class/</a>   This entry was posted in Genel. Bookmark the permalink.    &larr; fcbkcomplete [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: prasad</title>
		<link>http://www.phpied.com/3-ways-to-define-a-javascript-class/#comment-80818</link>
		<dc:creator>prasad</dc:creator>
		<pubDate>Thu, 29 Dec 2011 11:13:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/3-ways-to-define-a-javascript-class/#comment-80818</guid>
		<description>what is way to execute method in parent class which is overrided in child class? Thanx in advance..</description>
		<content:encoded><![CDATA[<p>what is way to execute method in parent class which is overrided in child class? Thanx in advance..</p>
]]></content:encoded>
	</item>
</channel>
</rss>

