Documentation. Stop multiple declarations of LitElement

This commit is contained in:
Thomas Lovén 2018-12-12 14:47:00 +01:00
parent fa49973e8c
commit 521e0c4fab

View File

@ -90,7 +90,7 @@ Currently, the Home Assistant frontend is being converted to LitElement based el
Instead, a reference to `LitElement` must be extracted from somewhere else:
```js
const LitElement = Object.getPrototypeOf(customElements.get('hui-error-entity-row'));
var LitElement = LitElement || Object.getPrototypeOf(customElements.get('hui-error-entity-row'));
class LitCard extends LitElement {
...
}