mirror of
https://github.com/Doodle3D/Doodle3D-Core.git
synced 2025-01-03 08:33:48 +01:00
fix last commit
This commit is contained in:
parent
f17d8ad917
commit
7fe47b78ca
@ -52,14 +52,14 @@ export function createThrottle() {
|
|||||||
|
|
||||||
if (!startLoop) return;
|
if (!startLoop) return;
|
||||||
|
|
||||||
(function loop() {
|
return (function loop() {
|
||||||
return next().then(() => {
|
return next().then(() => {
|
||||||
if (typeof next === 'function') return loop();
|
if (typeof next === 'function') return loop();
|
||||||
});
|
});
|
||||||
next = true;
|
next = true;
|
||||||
})();
|
})().then(() => {
|
||||||
|
next = null;
|
||||||
next = null;
|
});
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user