Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private render(): void {
if (this.shadowRoot == null) {
throw new Error('shadowRoot not initialized yet');
}
render(template(), this.shadowRoot, TalkieBackface.ns);
}
}
private render(): void {
if (this.shadowRoot == null) {
throw new Error('shadowRoot not initialized yet');
}
render(template(), this.shadowRoot, TalkieProgress.ns);
}
}
private render(): void {
if (this.shadowRoot == null) {
throw new Error('shadowRoot not initialized yet');
}
const current: string = this.getAttribute(TalkiePagerAttributes.CURRENT) || '0';
const total: string = this.getAttribute(TalkiePagerAttributes.TOTAL) || '0';
render(template({ current, total }), this.shadowRoot, TalkiePager.ns);
}
}
const renderShady = (result, container, context) => {
render(result, container, {
eventContext: context,
scopeName: context.localName,
});
};
render() {
shadyRender(this.template(this.renderProps), this.shadowRoot!, this._nodeName);
}
};