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)