function _updateLitElement()

in tools/rhythm-ui/src/LazyElement.ts [9:19]


function _updateLitElement(element: LazyElement, klass: ILitElementConstructor) {
	//Object.setPrototypeOf(element, klass.prototype);
	//new klass();
	Object.setPrototypeOf(element, klass.prototype);
	//debugger;
	//LazyElement._upgradingElement = undefined;
	element.requestUpdate();
	if (element.isConnected) {
		element.connectedCallback();
	}
}