Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit f827a8e

Browse files
chrootsucaitp
authored andcommitted
docs($interval): cancel() ignores falsy parameter
Closes #12552
1 parent a844138 commit f827a8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ng/interval.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ function $IntervalProvider() {
174174
* @description
175175
* Cancels a task associated with the `promise`.
176176
*
177-
* @param {promise} promise returned by the `$interval` function.
177+
* @param {Promise=} promise returned by the `$interval` function.
178178
* @returns {boolean} Returns `true` if the task was successfully canceled.
179179
*/
180180
interval.cancel = function(promise) {

0 commit comments

Comments
 (0)