forked from enviPath/enviPy
Current Dev State
This commit is contained in:
33
static/js/ketcher2/node_modules/timers-ext/test/throttle.js
generated
vendored
Normal file
33
static/js/ketcher2/node_modules/timers-ext/test/throttle.js
generated
vendored
Normal file
@ -0,0 +1,33 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = function (t, a, d) {
|
||||
var called = 0, fn = t(function () { ++called; }, 50);
|
||||
|
||||
fn();
|
||||
a(called, 1);
|
||||
fn();
|
||||
fn();
|
||||
a(called, 1);
|
||||
setTimeout(function () {
|
||||
a(called, 1);
|
||||
fn();
|
||||
setTimeout(function () {
|
||||
a(called, 2);
|
||||
fn();
|
||||
fn();
|
||||
|
||||
setTimeout(function () {
|
||||
a(called, 2);
|
||||
|
||||
setTimeout(function () {
|
||||
a(called, 3);
|
||||
|
||||
setTimeout(function () {
|
||||
a(called, 3);
|
||||
d();
|
||||
}, 100);
|
||||
}, 30);
|
||||
}, 20);
|
||||
}, 30);
|
||||
}, 30);
|
||||
};
|
||||
Reference in New Issue
Block a user