intervalProvider.js 628 B

123456789101112131415
  1. export const intervalProvider = {
  2. setInterval(handler, timeout, ...args) {
  3. const { delegate } = intervalProvider;
  4. if (delegate === null || delegate === void 0 ? void 0 : delegate.setInterval) {
  5. return delegate.setInterval(handler, timeout, ...args);
  6. }
  7. return setInterval(handler, timeout, ...args);
  8. },
  9. clearInterval(handle) {
  10. const { delegate } = intervalProvider;
  11. return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearInterval) || clearInterval)(handle);
  12. },
  13. delegate: undefined,
  14. };
  15. //# sourceMappingURL=intervalProvider.js.map