Skip to content

Commit 8b9d1f0

Browse files
chrootsulee-tunnicliffe
authored andcommitted
docs($interval): cancel() ignores falsy parameter
Closes angular#12552
1 parent e0af215 commit 8b9d1f0

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)