diff --git a/src/ng/interval.js b/src/ng/interval.js index 1a460e247c54..723b40bcfdff 100644 --- a/src/ng/interval.js +++ b/src/ng/interval.js @@ -174,7 +174,7 @@ function $IntervalProvider() { interval.cancel = function(promise) { if (promise && promise.$$intervalId in intervals) { intervals[promise.$$intervalId].reject('canceled'); - clearInterval(promise.$$intervalId); + $window.clearInterval(promise.$$intervalId); delete intervals[promise.$$intervalId]; return true; }