Fix: factory function for throttle/debounce (#288)
This commit is contained in:
committed by
Guillaume Chau
parent
267b6fc97b
commit
4e5b8e17e4
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user