<?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: Extending Objects in jQuery</title>
	<atom:link href="http://lostechies.com/chrismissal/2012/09/27/extending-objects-in-jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://lostechies.com/chrismissal/2012/09/27/extending-objects-in-jquery/</link>
	<description>Thoughts while working and playing as a Software Developer</description>
	<lastBuildDate>Thu, 11 Apr 2013 16:53:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
	<item>
		<title>By: Chris Missal</title>
		<link>http://lostechies.com/chrismissal/2012/09/27/extending-objects-in-jquery/#comment-471</link>
		<dc:creator>Chris Missal</dc:creator>
		<pubDate>Mon, 08 Oct 2012 16:16:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/chrismissal/?p=327#comment-471</guid>
		<description>You can modify it by accessing that object explicitly:

    $.extend(obj.buttons.two, { &#039;name&#039;: &#039;my new button&#039; });

In your code above, your property &#039;two &#039; has a space in it, so you would actually have to change it to look like this:    

    $.extend(obj.buttons[&#039;two &#039;], { &#039;name&#039;: &#039;my new button&#039; });</description>
		<content:encoded><![CDATA[<p>You can modify it by accessing that object explicitly:</p>
<p>    $.extend(obj.buttons.two, { &#8217;name&#8217;: &#8217;my new button&#8217; });</p>
<p>In your code above, your property &#8216;two &#8216; has a space in it, so you would actually have to change it to look like this:    </p>
<p>    $.extend(obj.buttons['two '], { &#8217;name&#8217;: &#8217;my new button&#8217; });</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Don</title>
		<link>http://lostechies.com/chrismissal/2012/09/27/extending-objects-in-jquery/#comment-470</link>
		<dc:creator>Don</dc:creator>
		<pubDate>Mon, 08 Oct 2012 15:49:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/chrismissal/?p=327#comment-470</guid>
		<description>How would you modify an interior object?  Say you had a sequence of buttons like:

            &#039;title&#039; : &#039;Great Idea!&#039;,
            &#039;message&#039; : &#039;You&#039;re going to make a lot of money with this one!&#039;,            &#039;buttons&#039; : {
                &#039;one&#039; : {
                    &#039;name&#039; : &#039;Yes&#039;,
                }                &#039;two &#039; : {                    &#039;name&#039; : &#039;No&#039;,               }               &#039;three&#039; : {                   &#039;name&#039; : &#039;Cancel&#039;,

How would one modify the &#039;name&#039; property of button &#039;two&#039; using extend?</description>
		<content:encoded><![CDATA[<p>How would you modify an interior object?  Say you had a sequence of buttons like:</p>
<p>            &#8216;title&#8217; : &#8216;Great Idea!&#8217;,<br />
            &#8216;message&#8217; : &#8216;You&#8217;re going to make a lot of money with this one!&#8217;,            &#8216;buttons&#8217; : {<br />
                &#8216;one&#8217; : {<br />
                    &#8216;name&#8217; : &#8216;Yes&#8217;,<br />
                }                &#8216;two &#8216; : {                    &#8216;name&#8217; : &#8216;No&#8217;,               }               &#8217;three&#8217; : {                   &#8217;name&#8217; : &#8216;Cancel&#8217;,</p>
<p>How would one modify the &#8216;name&#8217; property of button &#8216;two&#8217; using extend?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrej Fiser</title>
		<link>http://lostechies.com/chrismissal/2012/09/27/extending-objects-in-jquery/#comment-462</link>
		<dc:creator>Andrej Fiser</dc:creator>
		<pubDate>Thu, 04 Oct 2012 11:09:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/chrismissal/?p=327#comment-462</guid>
		<description>Maybe you should also mention that the first object (start) is modified and returned. To keep the original start intact you would use 
var extended = $.extend({}, start, more, extra);</description>
		<content:encoded><![CDATA[<p>Maybe you should also mention that the first object (start) is modified and returned. To keep the original start intact you would use <br />
var extended = $.extend({}, start, more, extra);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Extending Objects in Dojo &#124; Chris Missal&#039;s Blog</title>
		<link>http://lostechies.com/chrismissal/2012/09/27/extending-objects-in-jquery/#comment-460</link>
		<dc:creator>Extending Objects in Dojo &#124; Chris Missal&#039;s Blog</dc:creator>
		<pubDate>Wed, 03 Oct 2012 21:10:59 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/chrismissal/?p=327#comment-460</guid>
		<description>[...] works a bit differently than we saw with jQuery and ExtJS. They have the notion of extend as well as mixin. These both behave differently, not only [...]</description>
		<content:encoded><![CDATA[<p>[...] works a bit differently than we saw with jQuery and ExtJS. They have the notion of extend as well as mixin. These both behave differently, not only [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Missal</title>
		<link>http://lostechies.com/chrismissal/2012/09/27/extending-objects-in-jquery/#comment-454</link>
		<dc:creator>Chris Missal</dc:creator>
		<pubDate>Tue, 02 Oct 2012 06:19:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/chrismissal/?p=327#comment-454</guid>
		<description>The individual items contained within the array will not be merged. The entire array &quot;overwrites&quot; the previous value. In the example above, the start object has a property &quot;values&quot; containing an array with 7 integers. When extended with the &quot;extra&quot; object, the new value is now an array of 4 integers&quot;.</description>
		<content:encoded><![CDATA[<p>The individual items contained within the array will not be merged. The entire array &#8220;overwrites&#8221; the previous value. In the example above, the start object has a property &#8220;values&#8221; containing an array with 7 integers. When extended with the &#8220;extra&#8221; object, the new value is now an array of 4 integers&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kassem Darwish</title>
		<link>http://lostechies.com/chrismissal/2012/09/27/extending-objects-in-jquery/#comment-453</link>
		<dc:creator>Kassem Darwish</dc:creator>
		<pubDate>Tue, 02 Oct 2012 06:12:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/chrismissal/?p=327#comment-453</guid>
		<description>Very nice. But could you elaborate on the last part (the one that talks about extending an array) of the article please? </description>
		<content:encoded><![CDATA[<p>Very nice. But could you elaborate on the last part (the one that talks about extending an array) of the article please? </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henry Ho</title>
		<link>http://lostechies.com/chrismissal/2012/09/27/extending-objects-in-jquery/#comment-449</link>
		<dc:creator>Henry Ho</dc:creator>
		<pubDate>Fri, 28 Sep 2012 19:58:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/chrismissal/?p=327#comment-449</guid>
		<description>Question: should one use $.extend or _.extend?  

JSPref indicates $.extend is faster: http://jsperf.com/underscore-extend-performance-test/5</description>
		<content:encoded><![CDATA[<p>Question: should one use $.extend or _.extend?  </p>
<p>JSPref indicates $.extend is faster: http://jsperf.com/underscore-extend-performance-test/5</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick Williams</title>
		<link>http://lostechies.com/chrismissal/2012/09/27/extending-objects-in-jquery/#comment-448</link>
		<dc:creator>Nick Williams</dc:creator>
		<pubDate>Fri, 28 Sep 2012 12:16:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/chrismissal/?p=327#comment-448</guid>
		<description>My favourite use case for this is overlaying function arguments with default values, especially in jQuery plugins.</description>
		<content:encoded><![CDATA[<p>My favourite use case for this is overlaying function arguments with default values, especially in jQuery plugins.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Morning Brew - Chris Alcock &#187; The Morning Brew #1199</title>
		<link>http://lostechies.com/chrismissal/2012/09/27/extending-objects-in-jquery/#comment-447</link>
		<dc:creator>The Morning Brew - Chris Alcock &#187; The Morning Brew #1199</dc:creator>
		<pubDate>Fri, 28 Sep 2012 08:35:42 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/chrismissal/?p=327#comment-447</guid>
		<description>[...] Extending Objects in jQuery - Chris Missal kicks off a series of posts looking at extending objects in different JavaScript Frameworks. This post explores how you go about doing this usign jQuery [...]</description>
		<content:encoded><![CDATA[<p>[...] Extending Objects in jQuery &#8211; Chris Missal kicks off a series of posts looking at extending objects in different JavaScript Frameworks. This post explores how you go about doing this usign jQuery [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Extending Objects with JavaScript &#124; Chris Missal&#039;s Blog</title>
		<link>http://lostechies.com/chrismissal/2012/09/27/extending-objects-in-jquery/#comment-446</link>
		<dc:creator>Extending Objects with JavaScript &#124; Chris Missal&#039;s Blog</dc:creator>
		<pubDate>Fri, 28 Sep 2012 03:03:56 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/chrismissal/?p=327#comment-446</guid>
		<description>[...] Extending Objects in jQuery [...]</description>
		<content:encoded><![CDATA[<p>[...] Extending Objects in jQuery [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
