Tweak _.defer and _.delay docs. [ci skip]

Former-commit-id: 921eec8f2e8e7701f14095d221a5e72a2c45f470
This commit is contained in:
John-David Dalton
2013-02-19 01:35:31 -08:00
parent 2459a53350
commit 088c621862
5 changed files with 10 additions and 10 deletions

View File

@@ -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
View File

@@ -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'); });

View File

@@ -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'); });

View File

@@ -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

View File

@@ -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'); });