Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure computation on initialization.
This handles a nuanced edge case where internal, computed properties can be incorrect if they were interrogated between host construction and initialization. For example: ```javascript // This will trigger construction (assuming the element is defined). const element = document.createElement('my-element'); // Do things after construction, before initialization. // This will trigger initialization (again, assuming definition). document.body.append(element); // Do things after initialization while connected. ``` This change set should guarantee that after initialization, during connection — things will be correct. We cannot make such guarantees when not connected due to lack of eventing around attribute callbacks. Closes #143.
- Loading branch information