ngageoint / opensphere

OpenSphere
Apache License 2.0
185 stars 90 forks source link

fix(os): throw assertion error when registering a duplicate class #1385

Closed schmidtk closed 3 years ago

schmidtk commented 3 years ago

registerClass should never be called with a duplicate name. If this happens, we will now throw an assertion error in the development build.

I also moved the os.instanceOf export to the os.classRegistry module because the os.instanceOf module is for legacy purposes and will eventually be deprecated/removed.