PHP 8.2.30
Preview: raf-schd.esm.js Size: 627 B
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/raf-schd/dist/raf-schd.esm.js

var rafSchd = function rafSchd(fn) {
  var lastArgs = [];
  var frameId = null;

  var wrapperFn = function wrapperFn() {
    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    lastArgs = args;

    if (frameId) {
      return;
    }

    frameId = requestAnimationFrame(function () {
      frameId = null;
      fn.apply(void 0, lastArgs);
    });
  };

  wrapperFn.cancel = function () {
    if (!frameId) {
      return;
    }

    cancelAnimationFrame(frameId);
    frameId = null;
  };

  return wrapperFn;
};

export default rafSchd;

Directory Contents

Dirs: 0 × Files: 5

Name Size Perms Modified Actions
644 B lrw-r--r-- 2026-02-28 00:27:08
Edit Download
34 B lrw-r--r-- 2026-02-28 00:26:44
Edit Download
627 B lrw-r--r-- 2026-02-28 00:27:18
Edit Download
960 B lrw-r--r-- 2026-02-28 00:27:26
Edit Download
451 B lrw-r--r-- 2026-02-28 00:27:34
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).