mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-20 16:30:26 +00:00
docs($timeout): set return type to Promise instead of *.
The cancel function accepts a Promise, but the timeout function fails to specify returning a Promise.
This commit is contained in:
parent
7550f90a57
commit
3dab93874d
1 changed files with 1 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ function $TimeoutProvider() {
|
|||
* @param {number=} [delay=0] Delay in milliseconds.
|
||||
* @param {boolean=} [invokeApply=true] If set to false skips model dirty checking, otherwise
|
||||
* will invoke `fn` within the {@link ng.$rootScope.Scope#$apply $apply} block.
|
||||
* @returns {*} Promise that will be resolved when the timeout is reached. The value this
|
||||
* @returns {Promise} Promise that will be resolved when the timeout is reached. The value this
|
||||
* promise will be resolved with is the return value of the `fn` function.
|
||||
*/
|
||||
function timeout(fn, delay, invokeApply) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue