<?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: Dojo.reload Reloaded: reload app without reloading browser</title>
	<atom:link href="http://www.liucougar.net/blog/archives/90/feed" rel="self" type="application/rss+xml" />
	<link>http://www.liucougar.net/blog/archives/90</link>
	<description></description>
	<lastBuildDate>Sun, 07 Mar 2010 12:19:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9-rare</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: liucougar</title>
		<link>http://www.liucougar.net/blog/archives/90/comment-page-1#comment-177100</link>
		<dc:creator>liucougar</dc:creator>
		<pubDate>Sat, 20 Dec 2008 06:51:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.liucougar.net/blog/?p=90#comment-177100</guid>
		<description>sorry, server is relocated, so some comments were lost</description>
		<content:encoded><![CDATA[<p>sorry, server is relocated, so some comments were lost</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: liucougar</title>
		<link>http://www.liucougar.net/blog/archives/90/comment-page-1#comment-176950</link>
		<dc:creator>liucougar</dc:creator>
		<pubDate>Tue, 16 Dec 2008 22:51:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.liucougar.net/blog/?p=90#comment-176950</guid>
		<description>are you saying you don&#039;t have any custom made widgets? (by dijits, I actually refer to any widgets)

it should work (need to patch each and every existing objects and go through there superclass chain), but I think that&#039;s quite some work</description>
		<content:encoded><![CDATA[<p>are you saying you don&#8217;t have any custom made widgets? (by dijits, I actually refer to any widgets)</p>
<p>it should work (need to patch each and every existing objects and go through there superclass chain), but I think that&#8217;s quite some work</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yoav</title>
		<link>http://www.liucougar.net/blog/archives/90/comment-page-1#comment-176944</link>
		<dc:creator>Yoav</dc:creator>
		<pubDate>Tue, 16 Dec 2008 22:25:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.liucougar.net/blog/?p=90#comment-176944</guid>
		<description>well, I rarely change code within dijits, only in my classes, still, you can change a code when a subclassing is used, as long as you change the code of a class which is along the line of the superclass pointers ,and you need to check when you reload this path for each widget, or at least once for each class</description>
		<content:encoded><![CDATA[<p>well, I rarely change code within dijits, only in my classes, still, you can change a code when a subclassing is used, as long as you change the code of a class which is along the line of the superclass pointers ,and you need to check when you reload this path for each widget, or at least once for each class</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: liucougar</title>
		<link>http://www.liucougar.net/blog/archives/90/comment-page-1#comment-176926</link>
		<dc:creator>liucougar</dc:creator>
		<pubDate>Tue, 16 Dec 2008 20:21:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.liucougar.net/blog/?p=90#comment-176926</guid>
		<description>ah, I see. Yeah, that should work for simple case (where you have no subclass). However, for more real world cases, such as dijits, inheritage/subclass/mixins are heavily used, I don&#039;t know whether that will work.

In addition, sometimes you change a dijits internal structure or something, then you definitely want to delete the dijit and recreate it.</description>
		<content:encoded><![CDATA[<p>ah, I see. Yeah, that should work for simple case (where you have no subclass). However, for more real world cases, such as dijits, inheritage/subclass/mixins are heavily used, I don&#8217;t know whether that will work.</p>
<p>In addition, sometimes you change a dijits internal structure or something, then you definitely want to delete the dijit and recreate it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yoav</title>
		<link>http://www.liucougar.net/blog/archives/90/comment-page-1#comment-176919</link>
		<dc:creator>Yoav</dc:creator>
		<pubDate>Tue, 16 Dec 2008 19:42:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.liucougar.net/blog/?p=90#comment-176919</guid>
		<description>I&#039;m saying to mixin for all the relevant objects (the ones that you&#039;ve reloaded) only the function, in this way you&#039;ll gain the new functionallity (that most likely you&#039;ve written within a function) but not loose the current state&#039;s data (which is most likely in the members / data structures of the objects)</description>
		<content:encoded><![CDATA[<p>I&#8217;m saying to mixin for all the relevant objects (the ones that you&#8217;ve reloaded) only the function, in this way you&#8217;ll gain the new functionallity (that most likely you&#8217;ve written within a function) but not loose the current state&#8217;s data (which is most likely in the members / data structures of the objects)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: liucougar</title>
		<link>http://www.liucougar.net/blog/archives/90/comment-page-1#comment-176793</link>
		<dc:creator>liucougar</dc:creator>
		<pubDate>Tue, 16 Dec 2008 06:15:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.liucougar.net/blog/?p=90#comment-176793</guid>
		<description>so you are saying mixin all functions to all dijits on the page? I think it may be easier/faster to just destroy them and recreate them :)</description>
		<content:encoded><![CDATA[<p>so you are saying mixin all functions to all dijits on the page? I think it may be easier/faster to just destroy them and recreate them <img src='http://www.liucougar.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yoav</title>
		<link>http://www.liucougar.net/blog/archives/90/comment-page-1#comment-176623</link>
		<dc:creator>Yoav</dc:creator>
		<pubDate>Mon, 15 Dec 2008 07:51:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.liucougar.net/blog/?p=90#comment-176623</guid>
		<description>in this case maybe just mixin all the functions, because usually the code that you change is in a logic of a function, and not a value of a non-function member. Moreover, you are not destroying your widgets in this way, you just reassign new logic to the functions (JavaScript`s feature of function are data is just brilliant).</description>
		<content:encoded><![CDATA[<p>in this case maybe just mixin all the functions, because usually the code that you change is in a logic of a function, and not a value of a non-function member. Moreover, you are not destroying your widgets in this way, you just reassign new logic to the functions (JavaScript`s feature of function are data is just brilliant).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: liucougar</title>
		<link>http://www.liucougar.net/blog/archives/90/comment-page-1#comment-176605</link>
		<dc:creator>liucougar</dc:creator>
		<pubDate>Mon, 15 Dec 2008 05:52:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.liucougar.net/blog/?p=90#comment-176605</guid>
		<description>Yes, that will destroy all dijits of a particular type (or its subclasses), but the problem is that, when a dijit (say contentpane) is assigned to a member variable of another dijit (say a bordercontainer), and only contentpane is destroyed, the bordercontainer will still try to access the contentpane dijit using its cache pointer, which will definitely lead to error.</description>
		<content:encoded><![CDATA[<p>Yes, that will destroy all dijits of a particular type (or its subclasses), but the problem is that, when a dijit (say contentpane) is assigned to a member variable of another dijit (say a bordercontainer), and only contentpane is destroyed, the bordercontainer will still try to access the contentpane dijit using its cache pointer, which will definitely lead to error.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yoav</title>
		<link>http://www.liucougar.net/blog/archives/90/comment-page-1#comment-176602</link>
		<dc:creator>Yoav</dc:creator>
		<pubDate>Mon, 15 Dec 2008 05:23:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.liucougar.net/blog/?p=90#comment-176602</guid>
		<description>Just an idea, not sure that it would work, but if you are reloading a dijit widget, why won&#039;t you use dijit.registry to get the list of widgets that are of the type of the widget that you reloaded and mixin to all of them the object you&#039;ve loaded (or search in their inheritance tree for the object you&#039;ve loaded and if it is there then mixin it)</description>
		<content:encoded><![CDATA[<p>Just an idea, not sure that it would work, but if you are reloading a dijit widget, why won&#8217;t you use dijit.registry to get the list of widgets that are of the type of the widget that you reloaded and mixin to all of them the object you&#8217;ve loaded (or search in their inheritance tree for the object you&#8217;ve loaded and if it is there then mixin it)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
