in tools/rhythm-ui/src/LazyElement.ts [43:62]
public constructor() {
// if (LazyElement._upgradingElement !== undefined) {
// return LazyElement._upgradingElement;
// }
super();
const ctor = this.constructor as typeof LazyElement;
if (ctor.hasOwnProperty('implClass')) {
// Implementation already loaded, do the upgrade immediately
_updateLitElement(this, ctor.implClass);
} else {
// Implementation not loaded
if (typeof ctor.load !== 'function') {
throw new Error('A LazyElement must have a static `load` method');
}
(async () => {
ctor.implClass = await ctor.load();
_updateLitElement(this, ctor.implClass);
})();
}
}