playcanvas / pcui

UI component library for web-based tools
http://playcanvas.github.io/pcui
MIT License
664 stars 62 forks source link

Remove first parameter of `Element` constructor #260

Closed willeastcott closed 1 year ago

willeastcott commented 1 year ago

Currently, the Element constructor takes 2 arguments:

The Element constructor signature differs from all of its subclasses in having this first element. I propose we: