add loaded loader

HomeForumsAssetLoaderGeneral Discussionadd loaded loader

This topic has 2 voices, contains 2 replies, and was last updated by  Matan Uberstein 301 days ago.

Viewing 3 posts - 1 through 3 (of 3 total)
Author Posts
Author Posts
July 21, 2011 at 7:20 am #729 Quote

<p>hi,</p>
<p>i had a scenario where i removed a loaded ILoader from an AssetLoader and added it to a new AssetLoader.</p>
<p>the problem is that the new loader.id is not added to the _loadedIds.</p>
<p>AssetLoader.as:</p>
<p>override public function remove(id : String) : ILoader </p>
<p>you check<br />
…<br />
if(loader.loaded) _loadedIds.splice(_loadedIds.indexOf(id), 1);<br />
…</p>
<p>but there is no check in the addLoader function:<br />
like </p>
<p>override public function addLoader(loader : ILoader) : void<br />
if(loader.loaded) _loadedIds.push(loader.id);</p>
<p>best,<br />
marc
</p>
July 21, 2011 at 9:34 am #831

Matan Uberstein

Hey,

You are absolutely right! Thanks for bringing this to my attention, will push an update soon.

AssetLoaderBase#addLoader

July 22, 2011 at 8:16 am #832

Matan Uberstein

Just for you my friend!

Commit details of v2.4.1

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.