diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ngMock/angular-mocks.js | 9 | 
1 files changed, 4 insertions, 5 deletions
| diff --git a/src/ngMock/angular-mocks.js b/src/ngMock/angular-mocks.js index 70fd2159..0fc13b23 100644 --- a/src/ngMock/angular-mocks.js +++ b/src/ngMock/angular-mocks.js @@ -494,13 +494,12 @@ angular.mock.$IntervalProvider = function() {      /**       * @ngdoc method       * @name $interval#cancel -     * @description -     * -     * Clears the interval.       * -     * @param {promise} The promise of the interval to cancel. +     * @description +     * Cancels a task associated with the `promise`.       * -     * @return {boolean} +     * @param {number} promise A promise from calling the `$interval` function. +     * @returns {boolean} Returns `true` if the task was successfully cancelled.       */      $interval.cancel = function(promise) {        if(!promise) return false; | 
