zzyycc / bulk-loader

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

registerNewType is always failure. #34

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
In the method named registerNewType.

> if (!Boolean(withClass) || !(withClass is LoadingItem)){
>     throw new Error("[BulkLoader]: When adding a new type and extension, you 
must determine 
which class to use");
> }

`is` operator is able to check instance only.
Because everytime we're caught an exception.

should be flash.utils.describeType instead.

thanks and sorry in strange English :-)

Original issue reported on code.google.com by t.izuk...@gmail.com on 19 Apr 2008 at 1:22

GoogleCodeExporter commented 8 years ago
Hi Izukawa.

This is fixed as of revision 205.

Note that registerNewType is not enforcing that the new type be a subclass of 
LoadingType, even though it 
should be.

Thanks for the report,
Arthur Debert

Original comment by debert on 19 Apr 2008 at 5:09