<?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: RobotLegs, mediators and memory leaks</title>
	<atom:link href="http://www.randytroppmann.com/2010/05/05/robotlegs-mediators-and-memory-leaks/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.randytroppmann.com/2010/05/05/robotlegs-mediators-and-memory-leaks/</link>
	<description>Interactive designer / developer • Web • Mobile • Desktop</description>
	<lastBuildDate>Thu, 19 Jan 2012 12:18:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Randy</title>
		<link>http://www.randytroppmann.com/2010/05/05/robotlegs-mediators-and-memory-leaks/comment-page-1/#comment-270</link>
		<dc:creator>Randy</dc:creator>
		<pubDate>Wed, 05 May 2010 19:58:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.randytroppmann.com/?p=650#comment-270</guid>
		<description>@shaun Thanks for the link and your twitter response. In my case I just modified my mediator mapping like this:

   mediatorMap.mapView(Map, MapMediator, Map, true, false);

so that the creation is automatic but the deletion isn&#039;t. Just a coincidence that the view is a map ... as in Yahoo map :-0</description>
		<content:encoded><![CDATA[<p>@shaun Thanks for the link and your twitter response. In my case I just modified my mediator mapping like this:</p>
<p>   mediatorMap.mapView(Map, MapMediator, Map, true, false);</p>
<p>so that the creation is automatic but the deletion isn&#8217;t. Just a coincidence that the view is a map &#8230; as in Yahoo map :-0</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matan Uberstein</title>
		<link>http://www.randytroppmann.com/2010/05/05/robotlegs-mediators-and-memory-leaks/comment-page-1/#comment-269</link>
		<dc:creator>Matan Uberstein</dc:creator>
		<pubDate>Wed, 05 May 2010 19:19:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.randytroppmann.com/?p=650#comment-269</guid>
		<description>Nice one Shaun!</description>
		<content:encoded><![CDATA[<p>Nice one Shaun!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shaun</title>
		<link>http://www.randytroppmann.com/2010/05/05/robotlegs-mediators-and-memory-leaks/comment-page-1/#comment-268</link>
		<dc:creator>shaun</dc:creator>
		<pubDate>Wed, 05 May 2010 18:51:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.randytroppmann.com/?p=650#comment-268</guid>
		<description>Dear Anonymous,

Robotlegs is Open Source: you could have filed a bug report or even fixed the code yourself, but you chose to moan.. thanks for the feedback.</description>
		<content:encoded><![CDATA[<p>Dear Anonymous,</p>
<p>Robotlegs is Open Source: you could have filed a bug report or even fixed the code yourself, but you chose to moan.. thanks for the feedback.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shaun</title>
		<link>http://www.randytroppmann.com/2010/05/05/robotlegs-mediators-and-memory-leaks/comment-page-1/#comment-266</link>
		<dc:creator>shaun</dc:creator>
		<pubDate>Wed, 05 May 2010 18:16:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.randytroppmann.com/?p=650#comment-266</guid>
		<description>With auto-mediation (the default when mapping a mediator) mediators are created and removed automatically as view components arrive on and leave the stage. The mediator is supplied with an EventMap that you can use to wire up your listeners, and when the mediator is removed it&#039;s listeners will be removed along with it. Also, you don&#039;t have to use auto-mediation, you can create, register and remove mediators manually too:

http://knowledge.robotlegs.org/discussions/questions/117-any-other-way-to-create-mediators-other-than-listening-to-added_to_stage#comment_1363130</description>
		<content:encoded><![CDATA[<p>With auto-mediation (the default when mapping a mediator) mediators are created and removed automatically as view components arrive on and leave the stage. The mediator is supplied with an EventMap that you can use to wire up your listeners, and when the mediator is removed it&#8217;s listeners will be removed along with it. Also, you don&#8217;t have to use auto-mediation, you can create, register and remove mediators manually too:</p>
<p><a href="http://knowledge.robotlegs.org/discussions/questions/117-any-other-way-to-create-mediators-other-than-listening-to-added_to_stage#comment_1363130" rel="nofollow">http://knowledge.robotlegs.org/discussions/questions/117-any-other-way-to-create-mediators-other-than-listening-to-added_to_stage#comment_1363130</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.randytroppmann.com/2010/05/05/robotlegs-mediators-and-memory-leaks/comment-page-1/#comment-265</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Wed, 05 May 2010 17:32:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.randytroppmann.com/?p=650#comment-265</guid>
		<description>Another fun thing about the interaction of robotlegs mediators and states. Its possible for the state change to cause robot legs to create a mediator through the mediator map. This is what you discovered. Whats annoying is that under certain conditions the onRemove can get fired BEFORE the onRegister does. The onRegister function is fired by mapping an event listener to the creation complete event. If the application for some reason starts the mediator then quickly decides to change state again then it will fire that onRemove before your component thats tied to the mediator has a chance to fire creation complete. Drop into the the base class for the mediator map and you can see that the event handler is not removed in the onRemove function...but only once it has fired in the creation complete handler. wheeee!</description>
		<content:encoded><![CDATA[<p>Another fun thing about the interaction of robotlegs mediators and states. Its possible for the state change to cause robot legs to create a mediator through the mediator map. This is what you discovered. Whats annoying is that under certain conditions the onRemove can get fired BEFORE the onRegister does. The onRegister function is fired by mapping an event listener to the creation complete event. If the application for some reason starts the mediator then quickly decides to change state again then it will fire that onRemove before your component thats tied to the mediator has a chance to fire creation complete. Drop into the the base class for the mediator map and you can see that the event handler is not removed in the onRemove function&#8230;but only once it has fired in the creation complete handler. wheeee!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

