face08 / bulk-loader

Automatically exported from code.google.com/p/bulk-loader
0 stars 0 forks source link

add() function will create another LoadingItem if no ID is used #123

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The following code will output "false" where "true" is expected:

var loader:BulkLoader = new BulkLoader("test");         
var loadingItem:LoadingItem = loader.add("path.swf");
var anotherLoadingItem:LoadingItem = loader.add("path.swf");
trace (loadingItem == anotherLoadingItem);

If the same ID is used in the props object this will work though.

Diff file with a proposed fix attached.

Original issue reported on code.google.com by arihunfj...@gmail.com on 11 Sep 2010 at 3:40