fix last commit

This commit is contained in:
casperlamboo 2017-11-08 23:27:40 +01:00
parent f17d8ad917
commit 7fe47b78ca

View File

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