From c4349c5fc7301b83c9de52ab118bad4b2708c0e1 Mon Sep 17 00:00:00 2001 From: Sadaoui Abderrahim Date: Fri, 21 Feb 2014 03:21:54 -0800 Subject: [PATCH] Update angular-mocks.js It seems like the last pull request messed with the documentation see : [[http://new.tinygrab.com/96acd8f458722475e407c9363ed3101f74ad366f12.PNG]] This one is much better (copied from the ng/interval.js file); Sorry for messing up :) --- src/ngMock/angular-mocks.js | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/src/ngMock/angular-mocks.js b/src/ngMock/angular-mocks.js index 70fd21591577..1c06356a1f33 100644 --- a/src/ngMock/angular-mocks.js +++ b/src/ngMock/angular-mocks.js @@ -492,16 +492,15 @@ angular.mock.$IntervalProvider = function() { return promise; }; /** - * @ngdoc method - * @name $interval#cancel - * @description - * - * Clears the interval. - * - * @param {promise} The promise of the interval to cancel. - * - * @return {boolean} - */ + * @ngdoc method + * @name $interval#cancel + * + * @description + * Cancels a task associated with the `promise`. + * + * @param {number} promise Promise returned by the `$interval` function. + * @returns {boolean} Returns `true` if the task was successfully canceled. + */ $interval.cancel = function(promise) { if(!promise) return false; var fnIndex;