mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-01 22:37:41 +08:00
committed by
Peter Bacon Darwin
parent
fa5ca115ac
commit
7cd79b6f8f
9
src/ngMock/angular-mocks.js
vendored
9
src/ngMock/angular-mocks.js
vendored
@@ -494,13 +494,12 @@ angular.mock.$IntervalProvider = function() {
|
||||
/**
|
||||
* @ngdoc method
|
||||
* @name $interval#cancel
|
||||
*
|
||||
* @description
|
||||
* Cancels a task associated with the `promise`.
|
||||
*
|
||||
* Clears the interval.
|
||||
*
|
||||
* @param {promise} The promise of the interval to cancel.
|
||||
*
|
||||
* @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;
|
||||
|
||||
Reference in New Issue
Block a user