<?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: How to use anonymous objects</title>
	<atom:link href="http://www.javascriptkata.com/2007/03/22/how-to-use-anonymous-objects/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.javascriptkata.com/2007/03/22/how-to-use-anonymous-objects/</link>
	<description>Advanced katas for javascripters</description>
	<lastBuildDate>Fri, 30 Jul 2010 18:10:52 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Rue Leonheart</title>
		<link>http://www.javascriptkata.com/2007/03/22/how-to-use-anonymous-objects/comment-page-1/#comment-927</link>
		<dc:creator>Rue Leonheart</dc:creator>
		<pubDate>Sun, 04 Jul 2010 05:37:34 +0000</pubDate>
		<guid isPermaLink="false">http://javascriptkata.timmyontime.com/?p=10#comment-927</guid>
		<description>Anonymous objects are also useful in jQuery.</description>
		<content:encoded><![CDATA[<p>Anonymous objects are also useful in jQuery.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: this</title>
		<link>http://www.javascriptkata.com/2007/03/22/how-to-use-anonymous-objects/comment-page-1/#comment-923</link>
		<dc:creator>this</dc:creator>
		<pubDate>Wed, 16 Jun 2010 12:21:44 +0000</pubDate>
		<guid isPermaLink="false">http://javascriptkata.timmyontime.com/?p=10#comment-923</guid>
		<description>hello&lt;br&gt;&lt;br&gt;i suppose it would rather be called an instance of an anonymous class, as an anonymous object i think is already used as an expression for the parameter passed (not in the signature but in the calling routine) in the following example :&lt;br&gt;&lt;br&gt;Function anyFunction(AnyClass I_oAnyObject) { }&lt;br&gt;&lt;br&gt;{&lt;br&gt;[...]&lt;br&gt;anyFunction(new AnyClass());&lt;br&gt;[...]&lt;br&gt;&lt;br&gt;}</description>
		<content:encoded><![CDATA[<p>hello</p>
<p>i suppose it would rather be called an instance of an anonymous class, as an anonymous object i think is already used as an expression for the parameter passed (not in the signature but in the calling routine) in the following example :</p>
<p>Function anyFunction(AnyClass I_oAnyObject) { }</p>
<p>{<br />[...]<br />anyFunction(new AnyClass());<br />[...]</p>
<p>}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Blog about GWT and the Future of Web Development &#171; the joy of coding</title>
		<link>http://www.javascriptkata.com/2007/03/22/how-to-use-anonymous-objects/comment-page-1/#comment-902</link>
		<dc:creator>Blog about GWT and the Future of Web Development &#171; the joy of coding</dc:creator>
		<pubDate>Fri, 30 Apr 2010 17:50:48 +0000</pubDate>
		<guid isPermaLink="false">http://javascriptkata.timmyontime.com/?p=10#comment-902</guid>
		<description>[...] class functions, closures, extension methods, a vastly different “this” context, anonymous objects, dynamic typing and so on. &#8230; My position can be summed up as: GWT treats Javascript as a bug [...]</description>
		<content:encoded><![CDATA[<p>[...] class functions, closures, extension methods, a vastly different “this” context, anonymous objects, dynamic typing and so on. &#8230; My position can be summed up as: GWT treats Javascript as a bug [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe</title>
		<link>http://www.javascriptkata.com/2007/03/22/how-to-use-anonymous-objects/comment-page-1/#comment-862</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Wed, 24 Feb 2010 03:50:09 +0000</pubDate>
		<guid isPermaLink="false">http://javascriptkata.timmyontime.com/?p=10#comment-862</guid>
		<description>Anonymous objects are Often used to initialize complex arrays.

Take this example from the ext library for example:

/*
 * Ext JS Library 2.2
 * Copyright(c) 2006-2008, Ext JS, LLC.
 * licensing@extjs.com
 * 
 * http://extjs.com/license
 */

Ext.onReady(function() {

    var patients = [{
        insuranceCode: &#039;11111&#039;,
        name: &#039;Fred Bloggs&#039;,
        address: &#039;Main Street&#039;,
        telephone: &#039;555 1234 123&#039;
    }, {
        insuranceCode: &#039;22222&#039;,
        name: &#039;Fred West&#039;,
        address: &#039;Cromwell Street&#039;,
        telephone: &#039;616 555 222&#039;
    }, {
        insuranceCode: &#039;33333&#039;,
        name: &#039;Fred Mercury&#039;,
        address: &#039;Over The Rainbow&#039;,
        telephone: &#039;555 321 0987&#039;
    }, {
        insuranceCode: &#039;44444&#039;,
        name: &#039;Fred Forsyth&#039;,
        address: &#039;Blimp Street&#039;,
        telephone: &#039;555 111 2222&#039;
    }, {
        insuranceCode: &#039;55555&#039;,
        name: &#039;Fred Douglass&#039;,
        address: &#039;Talbot County, Maryland&#039;,
        telephone: &#039;N/A&#039;
    }];</description>
		<content:encoded><![CDATA[<p>Anonymous objects are Often used to initialize complex arrays.</p>
<p>Take this example from the ext library for example:</p>
<p>/*<br />
 * Ext JS Library 2.2<br />
 * Copyright(c) 2006-2008, Ext JS, LLC.<br />
 * <a href="mailto:licensing@extjs.com">licensing@extjs.com</a><br />
 *<br />
 * <a href="http://extjs.com/license" rel="nofollow">http://extjs.com/license</a><br />
 */</p>
<p>Ext.onReady(function() {</p>
<p>    var patients = [{<br />
        insuranceCode: '11111',<br />
        name: 'Fred Bloggs',<br />
        address: 'Main Street',<br />
        telephone: '555 1234 123'<br />
    }, {<br />
        insuranceCode: '22222',<br />
        name: 'Fred West',<br />
        address: 'Cromwell Street',<br />
        telephone: '616 555 222'<br />
    }, {<br />
        insuranceCode: '33333',<br />
        name: 'Fred Mercury',<br />
        address: 'Over The Rainbow',<br />
        telephone: '555 321 0987'<br />
    }, {<br />
        insuranceCode: '44444',<br />
        name: 'Fred Forsyth',<br />
        address: 'Blimp Street',<br />
        telephone: '555 111 2222'<br />
    }, {<br />
        insuranceCode: '55555',<br />
        name: 'Fred Douglass',<br />
        address: 'Talbot County, Maryland',<br />
        telephone: 'N/A'<br />
    }];</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron Faanes</title>
		<link>http://www.javascriptkata.com/2007/03/22/how-to-use-anonymous-objects/comment-page-1/#comment-15</link>
		<dc:creator>Aaron Faanes</dc:creator>
		<pubDate>Mon, 02 Apr 2007 15:37:45 +0000</pubDate>
		<guid isPermaLink="false">http://javascriptkata.timmyontime.com/?p=10#comment-15</guid>
		<description>These guys are actually called object literals ( http://en.wikipedia.org/wiki/Object_literal ).</description>
		<content:encoded><![CDATA[<p>These guys are actually called object literals ( <a href="http://en.wikipedia.org/wiki/Object_literal" rel="nofollow">http://en.wikipedia.org/wiki/Object_literal</a> ).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NicolÃ¡s Sanguinetti</title>
		<link>http://www.javascriptkata.com/2007/03/22/how-to-use-anonymous-objects/comment-page-1/#comment-14</link>
		<dc:creator>NicolÃ¡s Sanguinetti</dc:creator>
		<pubDate>Fri, 23 Mar 2007 14:29:28 +0000</pubDate>
		<guid isPermaLink="false">http://javascriptkata.timmyontime.com/?p=10#comment-14</guid>
		<description>Well, configuration options for methods. The Prototype and Script.aculo.us JS frameworks use this extensively.

For example, in script.aculo.us, when you want something to fade from one color to another, you do something like Effect.Fade(&quot;my_dom_id&quot;, { from: &quot;#000000&quot;, to: &quot;#ff0000&quot; });

(I don&#039;t remember the exact syntax, but the idea is there :))</description>
		<content:encoded><![CDATA[<p>Well, configuration options for methods. The Prototype and Script.aculo.us JS frameworks use this extensively.</p>
<p>For example, in script.aculo.us, when you want something to fade from one color to another, you do something like Effect.Fade(&#8220;my_dom_id&#8221;, { from: &#8220;#000000&#8243;, to: &#8220;#ff0000&#8243; });</p>
<p>(I don&#8217;t remember the exact syntax, but the idea is there <img src='http://www.javascriptkata.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> )</p>
]]></content:encoded>
	</item>
</channel>
</rss>
