mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 02:17:48 +00:00
Fix _.debounce doc typo.
Former-commit-id: e2659ca38818d15a4080aa8dd605fed99a9eaa43
This commit is contained in:
4
dist/lodash.compat.js
vendored
4
dist/lodash.compat.js
vendored
@@ -4450,7 +4450,7 @@
|
|||||||
* function will return the result of the last `func` call.
|
* function will return the result of the last `func` call.
|
||||||
*
|
*
|
||||||
* Note: If `leading` and `trailing` options are `true`, `func` will be called
|
* 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.
|
* invoked more than once during the `wait` timeout.
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
@@ -4467,7 +4467,7 @@
|
|||||||
* var lazyLayout = _.debounce(calculateLayout, 300);
|
* var lazyLayout = _.debounce(calculateLayout, 300);
|
||||||
* jQuery(window).on('resize', lazyLayout);
|
* jQuery(window).on('resize', lazyLayout);
|
||||||
*
|
*
|
||||||
* jQuery('.postbox').on('click', _.debounce(sendMail, 200, {
|
* jQuery('#postbox').on('click', _.debounce(sendMail, 200, {
|
||||||
* 'leading': true,
|
* 'leading': true,
|
||||||
* 'trailing': false
|
* 'trailing': false
|
||||||
* });
|
* });
|
||||||
|
|||||||
4
dist/lodash.js
vendored
4
dist/lodash.js
vendored
@@ -4190,7 +4190,7 @@
|
|||||||
* function will return the result of the last `func` call.
|
* function will return the result of the last `func` call.
|
||||||
*
|
*
|
||||||
* Note: If `leading` and `trailing` options are `true`, `func` will be called
|
* 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.
|
* invoked more than once during the `wait` timeout.
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
@@ -4207,7 +4207,7 @@
|
|||||||
* var lazyLayout = _.debounce(calculateLayout, 300);
|
* var lazyLayout = _.debounce(calculateLayout, 300);
|
||||||
* jQuery(window).on('resize', lazyLayout);
|
* jQuery(window).on('resize', lazyLayout);
|
||||||
*
|
*
|
||||||
* jQuery('.postbox').on('click', _.debounce(sendMail, 200, {
|
* jQuery('#postbox').on('click', _.debounce(sendMail, 200, {
|
||||||
* 'leading': true,
|
* 'leading': true,
|
||||||
* 'trailing': false
|
* 'trailing': false
|
||||||
* });
|
* });
|
||||||
|
|||||||
4
dist/lodash.underscore.js
vendored
4
dist/lodash.underscore.js
vendored
@@ -3469,7 +3469,7 @@
|
|||||||
* function will return the result of the last `func` call.
|
* function will return the result of the last `func` call.
|
||||||
*
|
*
|
||||||
* Note: If `leading` and `trailing` options are `true`, `func` will be called
|
* 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.
|
* invoked more than once during the `wait` timeout.
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
@@ -3486,7 +3486,7 @@
|
|||||||
* var lazyLayout = _.debounce(calculateLayout, 300);
|
* var lazyLayout = _.debounce(calculateLayout, 300);
|
||||||
* jQuery(window).on('resize', lazyLayout);
|
* jQuery(window).on('resize', lazyLayout);
|
||||||
*
|
*
|
||||||
* jQuery('.postbox').on('click', _.debounce(sendMail, 200, {
|
* jQuery('#postbox').on('click', _.debounce(sendMail, 200, {
|
||||||
* 'leading': true,
|
* 'leading': true,
|
||||||
* 'trailing': false
|
* 'trailing': false
|
||||||
* });
|
* });
|
||||||
|
|||||||
@@ -2080,7 +2080,7 @@ _.toLookup(stooges, 'name');
|
|||||||
|
|
||||||
Creates a function that will delay the execution of `func` until after `wait` milliseconds have elapsed since the last time it was invoked. Pass an `options` object to indicate that `func` should be invoked on the leading and/or trailing edge of the `wait` timeout. Subsequent calls to the debounced function will return the result of the last `func` call.
|
Creates a function that will delay the execution of `func` until after `wait` milliseconds have elapsed since the last time it was invoked. Pass an `options` object to indicate that `func` should be invoked on the leading and/or trailing edge of the `wait` timeout. Subsequent calls to the debounced 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 invoked more than once during the `wait` timeout.
|
Note: If `leading` and `trailing` options are `true`, `func` will be called on the trailing edge of the timeout only if the the debounced function is invoked more than once during the `wait` timeout.
|
||||||
|
|
||||||
#### Arguments
|
#### Arguments
|
||||||
1. `func` *(Function)*: The function to debounce.
|
1. `func` *(Function)*: The function to debounce.
|
||||||
@@ -2095,7 +2095,7 @@ Note: If `leading` and `trailing` options are `true`, `func` will be called on t
|
|||||||
var lazyLayout = _.debounce(calculateLayout, 300);
|
var lazyLayout = _.debounce(calculateLayout, 300);
|
||||||
jQuery(window).on('resize', lazyLayout);
|
jQuery(window).on('resize', lazyLayout);
|
||||||
|
|
||||||
jQuery('.postbox').on('click', _.debounce(sendMail, 200, {
|
jQuery('#postbox').on('click', _.debounce(sendMail, 200, {
|
||||||
'leading': true,
|
'leading': true,
|
||||||
'trailing': false
|
'trailing': false
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -4460,7 +4460,7 @@
|
|||||||
* function will return the result of the last `func` call.
|
* function will return the result of the last `func` call.
|
||||||
*
|
*
|
||||||
* Note: If `leading` and `trailing` options are `true`, `func` will be called
|
* 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.
|
* invoked more than once during the `wait` timeout.
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
@@ -4477,7 +4477,7 @@
|
|||||||
* var lazyLayout = _.debounce(calculateLayout, 300);
|
* var lazyLayout = _.debounce(calculateLayout, 300);
|
||||||
* jQuery(window).on('resize', lazyLayout);
|
* jQuery(window).on('resize', lazyLayout);
|
||||||
*
|
*
|
||||||
* jQuery('.postbox').on('click', _.debounce(sendMail, 200, {
|
* jQuery('#postbox').on('click', _.debounce(sendMail, 200, {
|
||||||
* 'leading': true,
|
* 'leading': true,
|
||||||
* 'trailing': false
|
* 'trailing': false
|
||||||
* });
|
* });
|
||||||
|
|||||||
Reference in New Issue
Block a user