mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 15:27:50 +00:00
The_.throttle method uses _.debounce so no coersion of wait required.
This commit is contained in:
committed by
John-David Dalton
parent
ea71539b7a
commit
fe910d01f6
@@ -8730,7 +8730,7 @@
|
||||
leading = 'leading' in options ? !!options.leading : leading;
|
||||
trailing = 'trailing' in options ? !!options.trailing : trailing;
|
||||
}
|
||||
return debounce(func, wait, { 'leading': leading, 'maxWait': +wait, 'trailing': trailing });
|
||||
return debounce(func, wait, { 'leading': leading, 'maxWait': wait, 'trailing': trailing });
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user