mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 15:57:48 +00:00
Tweak _.defer and _.delay docs. [ci skip]
Former-commit-id: 921eec8f2e8e7701f14095d221a5e72a2c45f470
This commit is contained in:
4
dist/lodash.compat.js
vendored
4
dist/lodash.compat.js
vendored
@@ -4200,7 +4200,7 @@
|
||||
* @param {Function} func The function to delay.
|
||||
* @param {Number} wait The number of milliseconds to delay execution.
|
||||
* @param {Mixed} [arg1, arg2, ...] Arguments to invoke the function with.
|
||||
* @returns {Number} Returns the `setTimeout` timeout id.
|
||||
* @returns {Number} Returns the timer id.
|
||||
* @example
|
||||
*
|
||||
* var log = _.bind(console.log, console);
|
||||
@@ -4221,7 +4221,7 @@
|
||||
* @category Functions
|
||||
* @param {Function} func The function to defer.
|
||||
* @param {Mixed} [arg1, arg2, ...] Arguments to invoke the function with.
|
||||
* @returns {Number} Returns the `setTimeout` timeout id.
|
||||
* @returns {Number} Returns the timer id.
|
||||
* @example
|
||||
*
|
||||
* _.defer(function() { alert('deferred'); });
|
||||
|
||||
4
dist/lodash.js
vendored
4
dist/lodash.js
vendored
@@ -4050,7 +4050,7 @@
|
||||
* @param {Function} func The function to delay.
|
||||
* @param {Number} wait The number of milliseconds to delay execution.
|
||||
* @param {Mixed} [arg1, arg2, ...] Arguments to invoke the function with.
|
||||
* @returns {Number} Returns the `setTimeout` timeout id.
|
||||
* @returns {Number} Returns the timer id.
|
||||
* @example
|
||||
*
|
||||
* var log = _.bind(console.log, console);
|
||||
@@ -4071,7 +4071,7 @@
|
||||
* @category Functions
|
||||
* @param {Function} func The function to defer.
|
||||
* @param {Mixed} [arg1, arg2, ...] Arguments to invoke the function with.
|
||||
* @returns {Number} Returns the `setTimeout` timeout id.
|
||||
* @returns {Number} Returns the timer id.
|
||||
* @example
|
||||
*
|
||||
* _.defer(function() { alert('deferred'); });
|
||||
|
||||
4
dist/lodash.underscore.js
vendored
4
dist/lodash.underscore.js
vendored
@@ -3439,7 +3439,7 @@
|
||||
* @param {Function} func The function to delay.
|
||||
* @param {Number} wait The number of milliseconds to delay execution.
|
||||
* @param {Mixed} [arg1, arg2, ...] Arguments to invoke the function with.
|
||||
* @returns {Number} Returns the `setTimeout` timeout id.
|
||||
* @returns {Number} Returns the timer id.
|
||||
* @example
|
||||
*
|
||||
* var log = _.bind(console.log, console);
|
||||
@@ -3460,7 +3460,7 @@
|
||||
* @category Functions
|
||||
* @param {Function} func The function to defer.
|
||||
* @param {Mixed} [arg1, arg2, ...] Arguments to invoke the function with.
|
||||
* @returns {Number} Returns the `setTimeout` timeout id.
|
||||
* @returns {Number} Returns the timer id.
|
||||
* @example
|
||||
*
|
||||
* _.defer(function() { alert('deferred'); });
|
||||
|
||||
@@ -1945,7 +1945,7 @@ Defers executing the `func` function until the current call stack has cleared. A
|
||||
2. `[arg1, arg2, ...]` *(Mixed)*: Arguments to invoke the function with.
|
||||
|
||||
#### Returns
|
||||
*(Number)*: Returns the `setTimeout` timeout id.
|
||||
*(Number)*: Returns the timer id.
|
||||
|
||||
#### Example
|
||||
```js
|
||||
@@ -1971,7 +1971,7 @@ Executes the `func` function after `wait` milliseconds. Additional arguments wil
|
||||
3. `[arg1, arg2, ...]` *(Mixed)*: Arguments to invoke the function with.
|
||||
|
||||
#### Returns
|
||||
*(Number)*: Returns the `setTimeout` timeout id.
|
||||
*(Number)*: Returns the timer id.
|
||||
|
||||
#### Example
|
||||
```js
|
||||
|
||||
@@ -4207,7 +4207,7 @@
|
||||
* @param {Function} func The function to delay.
|
||||
* @param {Number} wait The number of milliseconds to delay execution.
|
||||
* @param {Mixed} [arg1, arg2, ...] Arguments to invoke the function with.
|
||||
* @returns {Number} Returns the `setTimeout` timeout id.
|
||||
* @returns {Number} Returns the timer id.
|
||||
* @example
|
||||
*
|
||||
* var log = _.bind(console.log, console);
|
||||
@@ -4228,7 +4228,7 @@
|
||||
* @category Functions
|
||||
* @param {Function} func The function to defer.
|
||||
* @param {Mixed} [arg1, arg2, ...] Arguments to invoke the function with.
|
||||
* @returns {Number} Returns the `setTimeout` timeout id.
|
||||
* @returns {Number} Returns the timer id.
|
||||
* @example
|
||||
*
|
||||
* _.defer(function() { alert('deferred'); });
|
||||
|
||||
Reference in New Issue
Block a user