UNPKG

vevet

Version:

Vevet is a JavaScript library for creative development that simplifies crafting rich interactions like split text animations, carousels, marquees, preloading, and more.

18 lines 598 B
"use strict"; /* eslint-disable no-underscore-dangle */ Object.defineProperty(exports, "__esModule", { value: true }); exports.noopIfDestroyed = noopIfDestroyed; function noopIfDestroyed(target, propertyKey, descriptor) { var originalMethod = descriptor.value; descriptor.value = function check() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } if (this._isDestroyed) { return; } return originalMethod.apply(this, args); }; } //# sourceMappingURL=noopIfDestroyed.js.map