webtides / element-js

Simple and lightweight base classes for web components with a beautiful API
MIT License
28 stars 3 forks source link

fix StyledElemet constructor #3

Closed quarkus closed 4 years ago

quarkus commented 4 years ago

prepareAndAdoptStyleSheets

Is supposed to be done in connected rather than in constructor. Doing so we will be able to move the attachShadowRoot back to the Template Element where it actually belongs