Closed bekzod closed 6 years ago
bb.debounce uses final/last argument passed to it while bb.throttle does not, this PR fixes it
bb.debounce
bb.throttle
bb.debounce(null, debouncee, 'car', 10); bb.debounce(null, debouncee, 'bus', 10); // would call debouncee with `bus` bb.throttle(null, throttled, 'car' , 10, false); bb.throttle(null, throttled, 'bus' , 10, false); // before: would call throttled with `car` // now: calls throttled with `bus`
bb.debounce
uses final/last argument passed to it whilebb.throttle
does not, this PR fixes it