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