Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async componentDidLoad() {
await hideLazyLoadImages(this.el);
this.initWindowResize();
this.slideDidLoad.emit();
}
async componentDidLoad() {
await hideLazyLoadImages(this.el);
this.initWindowResize();
await this.initFrameTitle();
await this.initSize();
this.slideDidLoad.emit();
}
async componentDidLoad() {
await hideLazyLoadImages(this.el);
this.crop = this.el.shadowRoot.querySelector('.crop');
this.bigImg = this.el.shadowRoot.querySelector('.big-image');
this.slideDidLoad.emit();
}
async componentDidLoad() {
await hideLazyLoadImages(this.el);
this.initWindowResize();
await this.initSize();
this.alignCenter = await this.initCenterAlign();
this.slideDidLoad.emit();
}
async componentDidLoad() {
await hideLazyLoadImages(this.el);
this.initWindowResize();
this.slideDidLoad.emit();
}
async componentDidLoad() {
await hideLazyLoadImages(this.el);
const img: HTMLImageElement = this.el.shadowRoot.querySelector('img');
if (img) {
img.addEventListener('load', () => {
this.loaded = true;
this.gifLoaded.emit(true);
}, false);
}
}
return new Promise(async (resolve) => {
await lazyLoadContent(this.el);
await this.initSize();
await this.resizeVideoContent();
resolve();
});
}
return new Promise(async (resolve) => {
const promises = [];
promises.push(lazyLoadContent(this.el));
promises.push(this.drawChart());
await Promise.all(promises);
resolve();
});
}
return new Promise(async (resolve) => {
await lazyLoadContent(this.el);
await this.initSize();
await this.resizeVideoContent();
resolve();
});
}
lazyLoadContent(): Promise {
return lazyLoadContent(this.el);
}