From 4e5b8e17e46648b9030b05fa4ea60f2a988f1237 Mon Sep 17 00:00:00 2001 From: Juraj Pikora Date: Wed, 23 May 2018 15:24:40 +0200 Subject: [PATCH] Fix: factory function for throttle/debounce (#288) --- src/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.js b/src/utils.js index 50e0159..2b50490 100644 --- a/src/utils.js +++ b/src/utils.js @@ -4,7 +4,7 @@ import oDebounce from 'throttle-debounce/debounce' export const Globals = {} function factory (action) { - return (cb, time) => action(time.cb) + return (cb, time) => action(time, cb) } export const throttle = factory(oThrottle)