fin-hypergrid / core

A canvas-based super high performant grid renderer API
MIT License
897 stars 144 forks source link

Add Registry.prototype.make #775

Closed joneit closed 6 years ago

joneit commented 6 years ago

This PR targets the next release, v3.2.0.

Registry.prototype.make = function(name, prototype) // name is optional

This new convenience method creates a new class extended from the registry's base class (registry.BaseClass) and then adds it. The registry name is determined either by the first parameter if provided OR from a name property or $$CLASS_NAME property in the provided prototype.