<?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: OOP in jQuery</title>
	<atom:link href="http://programmersnotes.info/2009/04/30/oop-in-jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://programmersnotes.info/2009/04/30/oop-in-jquery/</link>
	<description>Notes on the web-development and artificial intelligence.</description>
	<lastBuildDate>Wed, 25 Jan 2012 22:21:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	<item>
		<title>By: Konstantin Mirin</title>
		<link>http://programmersnotes.info/2009/04/30/oop-in-jquery/comment-page-1/#comment-149</link>
		<dc:creator>Konstantin Mirin</dc:creator>
		<pubDate>Thu, 11 Mar 2010 20:22:46 +0000</pubDate>
		<guid isPermaLink="false">http://konstantin.takeforce.net/?p=12#comment-149</guid>
		<description>This makes sense. I was developing this quite long ago and can&#039;t remember now why I decided to create new object rather than put all properties and methods to the prototype.
To all readers - try this new proposed approach first. If you experience problems with it, you can always use mine. 
And I&#039;d appreciate if you post results of your implementation here :)</description>
		<content:encoded><![CDATA[<p>This makes sense. I was developing this quite long ago and can&#8217;t remember now why I decided to create new object rather than put all properties and methods to the prototype.<br />
To all readers &#8211; try this new proposed approach first. If you experience problems with it, you can always use mine.<br />
And I&#8217;d appreciate if you post results of your implementation here <img src='http://programmersnotes.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zecc</title>
		<link>http://programmersnotes.info/2009/04/30/oop-in-jquery/comment-page-1/#comment-111</link>
		<dc:creator>Zecc</dc:creator>
		<pubDate>Sun, 31 Jan 2010 17:32:14 +0000</pubDate>
		<guid isPermaLink="false">http://konstantin.takeforce.net/?p=12#comment-111</guid>
		<description>You&#039;re doing it wrong. It&#039;s easy to be confused my JavaScript&#039;s somewhat complex object model.

Instead of
    Popups.CommentBox = $.extend(true,{}, Popups.Box, { /* ... */ });

you should do
    Popups.CommentBox.prototype = $.extend(true, {}, new Popups.Box(), { /* ... */ });

You&#039;ll even get
    box = new Popups.CommentBox();
    if( box instance Popup.CommentBox &amp;&amp; box instanceof Popups.Box ) alert(&#039;You betcha!&#039;);</description>
		<content:encoded><![CDATA[<p>You&#8217;re doing it wrong. It&#8217;s easy to be confused my JavaScript&#8217;s somewhat complex object model.</p>
<p>Instead of<br />
    Popups.CommentBox = $.extend(true,{}, Popups.Box, { /* &#8230; */ });</p>
<p>you should do<br />
    Popups.CommentBox.prototype = $.extend(true, {}, new Popups.Box(), { /* &#8230; */ });</p>
<p>You&#8217;ll even get<br />
    box = new Popups.CommentBox();<br />
    if( box instance Popup.CommentBox &amp;&amp; box instanceof Popups.Box ) alert(&#8216;You betcha!&#8217;);</p>
]]></content:encoded>
	</item>
</channel>
</rss>

