Fix: factory function for throttle/debounce (#288)

This commit is contained in:
Juraj Pikora
2018-05-23 15:24:40 +02:00
committed by Guillaume Chau
parent 267b6fc97b
commit 4e5b8e17e4
+1 -1
View File
@@ -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)