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

(function (global, factory) {
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
  typeof define === 'function' && define.amd ? define(factory) :
  (global = global || self, global.rafSchd = factory());
}(this, function () { 'use strict';

  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;
  };

  return 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).