From fb6cd9f16ad02ed291c5f8a5837a8173387ba376 Mon Sep 17 00:00:00 2001 From: martinpaulicek Date: Tue, 3 Jun 2014 10:30:26 +0200 Subject: [PATCH 1/2] Updated $interval documentation callback function return parameter with iteration count --- src/ngMock/angular-mocks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ngMock/angular-mocks.js b/src/ngMock/angular-mocks.js index a44b90b5aa3e..b5da365ade4a 100644 --- a/src/ngMock/angular-mocks.js +++ b/src/ngMock/angular-mocks.js @@ -434,7 +434,7 @@ angular.mock.$LogProvider = function() { * move forward by `millis` milliseconds and trigger any functions scheduled to run in that * time. * - * @param {function()} fn A function that should be called repeatedly. + * @param {function(iteration)} fn A function that should be called repeatedly. Iteration count parameter is provided. * @param {number} delay Number of milliseconds between each function call. * @param {number=} [count=0] Number of times to repeat. If not set, or 0, will repeat * indefinitely. From a9b892ff9807831c890dba5a555c064889eb8787 Mon Sep 17 00:00:00 2001 From: martinpaulicek Date: Sat, 7 Jun 2014 20:41:34 +0200 Subject: [PATCH 2/2] $interval function parameter added Text describing the parameter changed. New version is based on the format from documentation of $watch. --- src/ngMock/angular-mocks.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ngMock/angular-mocks.js b/src/ngMock/angular-mocks.js index b5da365ade4a..a18ef350bc81 100644 --- a/src/ngMock/angular-mocks.js +++ b/src/ngMock/angular-mocks.js @@ -434,7 +434,9 @@ angular.mock.$LogProvider = function() { * move forward by `millis` milliseconds and trigger any functions scheduled to run in that * time. * - * @param {function(iteration)} fn A function that should be called repeatedly. Iteration count parameter is provided. + * @param {function()} fn A function that should be called repeatedly. + * + * - `function(iteration)`: called with iteration count as a parameter. * @param {number} delay Number of milliseconds between each function call. * @param {number=} [count=0] Number of times to repeat. If not set, or 0, will repeat * indefinitely.