<?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/"
	xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
	xmlns:media="http://search.yahoo.com/mrss/"
	>
<channel>
	<title>Comments on: A hidden gem of Dojo.declare &#8211; overcoming the limits of multiple inheritance</title>
	<atom:link href="http://dojocampus.org/content/2008/11/16/a-hidden-gem-of-dojodeclare-overcoming-the-limits-of-multiple-inheritance/feed/" rel="self" type="application/rss+xml" />
	<link>http://dojocampus.org/content/2008/11/16/a-hidden-gem-of-dojodeclare-overcoming-the-limits-of-multiple-inheritance/</link>
	<description>The definitive resource for all things Dojo: past, present, future.</description>
	<lastBuildDate>Wed, 10 Mar 2010 18:40:27 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: bill</title>
		<link>http://dojocampus.org/content/2008/11/16/a-hidden-gem-of-dojodeclare-overcoming-the-limits-of-multiple-inheritance/comment-page-1/#comment-284</link>
		<dc:creator>bill</dc:creator>
		<pubDate>Thu, 25 Dec 2008 10:12:04 +0000</pubDate>
		<guid isPermaLink="false">http://dojocampus.org/content/?p=182#comment-284</guid>
		<description>I don&#039;t think the prototype.doSomething.apply() trick has anything to do with dojo.declare().  It works even when dojo.declare() isn&#039;t used.  But there is something useful that dojo.declare() gives us:

If we add this.inherited(arguments) calls to every doSomething() implementation, then calling &quot;myPackage.A&quot;.doSomething() will call *every* doSomething()... strangely, even though myPackage.B and myPackage.C are peers from our perspective, dojo.declare() sets things up so that myPackage.B&#039;s call to this.inherited(arguments) will call myPackage.C.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t think the prototype.doSomething.apply() trick has anything to do with dojo.declare().  It works even when dojo.declare() isn&#8217;t used.  But there is something useful that dojo.declare() gives us:</p>
<p>If we add this.inherited(arguments) calls to every doSomething() implementation, then calling &#8220;myPackage.A&#8221;.doSomething() will call *every* doSomething()&#8230; strangely, even though myPackage.B and myPackage.C are peers from our perspective, dojo.declare() sets things up so that myPackage.B&#8217;s call to this.inherited(arguments) will call myPackage.C.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.378 seconds -->
