mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 09:47:48 +00:00
Fix _.debounce doc typo.
Former-commit-id: e2659ca38818d15a4080aa8dd605fed99a9eaa43
This commit is contained in:
@@ -4460,7 +4460,7 @@
|
||||
* function will return the result of the last `func` call.
|
||||
*
|
||||
* Note: If `leading` and `trailing` options are `true`, `func` will be called
|
||||
* on the trailing edge of the timeout only if the the throttled function is
|
||||
* on the trailing edge of the timeout only if the the debounced function is
|
||||
* invoked more than once during the `wait` timeout.
|
||||
*
|
||||
* @static
|
||||
@@ -4477,7 +4477,7 @@
|
||||
* var lazyLayout = _.debounce(calculateLayout, 300);
|
||||
* jQuery(window).on('resize', lazyLayout);
|
||||
*
|
||||
* jQuery('.postbox').on('click', _.debounce(sendMail, 200, {
|
||||
* jQuery('#postbox').on('click', _.debounce(sendMail, 200, {
|
||||
* 'leading': true,
|
||||
* 'trailing': false
|
||||
* });
|
||||
|
||||
Reference in New Issue
Block a user