vevet
Version:
Vevet is a JavaScript library for creative development that simplifies crafting rich interactions like split text animations, carousels, marquees, preloading, and more.
11 lines • 367 B
JavaScript
/* eslint-disable no-underscore-dangle */
export function noopIfDestroyed(target, propertyKey, descriptor) {
const originalMethod = descriptor.value;
descriptor.value = function check(...args) {
if (this._isDestroyed) {
return;
}
return originalMethod.apply(this, args);
};
}
//# sourceMappingURL=noopIfDestroyed.js.map