Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private $_bindEvents(): void {
const nativeIG = this.$_nativeInfiniteGrid;
INFINITEGRID_EVENTS.forEach(eventName => {
nativeIG.on(eventName, e => {
e.currentTarget = this;
// Make events from camelCase to kebab-case
this.$emit(eventName.replace(/([A-Z])/g, "-$1").toLowerCase(), e);
});
});
nativeIG.on("render", ({ next }) => {
this.$forceUpdate();
this.$nextTick(() => {
next();
});
});
}