mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 02:17:48 +00:00
Update _.debounce and _.throttled docs. [ci skip]
Former-commit-id: 5a94c9d35069952c72303541409b88656deaa6a7
This commit is contained in:
18
dist/lodash.compat.js
vendored
18
dist/lodash.compat.js
vendored
@@ -4452,6 +4452,10 @@
|
||||
* 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.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @category Functions
|
||||
@@ -4666,12 +4670,14 @@
|
||||
|
||||
/**
|
||||
* Creates a function that, when executed, will only call the `func` function
|
||||
* at most once per every `wait` milliseconds. If the throttled function is
|
||||
* invoked more than once during the `wait` timeout, `func` will also be called
|
||||
* on the trailing edge of the timeout. 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 throttled function will return
|
||||
* the result of the last `func` call.
|
||||
* at most once per every `wait` milliseconds. 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 throttled 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.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
|
||||
18
dist/lodash.js
vendored
18
dist/lodash.js
vendored
@@ -4193,6 +4193,10 @@
|
||||
* 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.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @category Functions
|
||||
@@ -4407,12 +4411,14 @@
|
||||
|
||||
/**
|
||||
* Creates a function that, when executed, will only call the `func` function
|
||||
* at most once per every `wait` milliseconds. If the throttled function is
|
||||
* invoked more than once during the `wait` timeout, `func` will also be called
|
||||
* on the trailing edge of the timeout. 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 throttled function will return
|
||||
* the result of the last `func` call.
|
||||
* at most once per every `wait` milliseconds. 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 throttled 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.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
|
||||
18
dist/lodash.underscore.js
vendored
18
dist/lodash.underscore.js
vendored
@@ -3468,6 +3468,10 @@
|
||||
* 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.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @category Functions
|
||||
@@ -3638,12 +3642,14 @@
|
||||
|
||||
/**
|
||||
* Creates a function that, when executed, will only call the `func` function
|
||||
* at most once per every `wait` milliseconds. If the throttled function is
|
||||
* invoked more than once during the `wait` timeout, `func` will also be called
|
||||
* on the trailing edge of the timeout. 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 throttled function will return
|
||||
* the result of the last `func` call.
|
||||
* at most once per every `wait` milliseconds. 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 throttled 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.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
|
||||
Reference in New Issue
Block a user