diff options
| author | Mark J. Titorenko | 2013-10-09 16:31:51 +0100 | 
|---|---|---|
| committer | Pete Bacon Darwin | 2013-10-09 20:12:26 +0100 | 
| commit | 9bbd62f4543ad8760deec08170c674cc028772cc (patch) | |
| tree | 3c86ff93e9062ae968490cc0da3edf408f19bb68 /src/ngMock/angular-mocks.js | |
| parent | 1366556ace3e71f9e4abe63554050ddf9c0dabb6 (diff) | |
| download | angular.js-9bbd62f4543ad8760deec08170c674cc028772cc.tar.bz2 | |
fix(ngMock.$interval): should use angular.isDefined
The newly introduced `$interval` mock service for ngMock calls `isDefined`
in the global namespace which fails when used within unit tests.
This change adds the missing `angular.` prefix to such `isDefined` calls.
Closes #4334
Closes #4353
Diffstat (limited to 'src/ngMock/angular-mocks.js')
| -rw-r--r-- | src/ngMock/angular-mocks.js | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/src/ngMock/angular-mocks.js b/src/ngMock/angular-mocks.js index 11f6f045..3592aacd 100644 --- a/src/ngMock/angular-mocks.js +++ b/src/ngMock/angular-mocks.js @@ -467,9 +467,9 @@ angular.mock.$IntervalProvider = function() {      var $interval = function(fn, delay, count, invokeApply) {        var deferred = $q.defer(),            promise = deferred.promise, -          count = (isDefined(count)) ? count : 0, +          count = (angular.isDefined(count)) ? count : 0,            iteration = 0, -          skipApply = (isDefined(invokeApply) && !invokeApply); +          skipApply = (angular.isDefined(invokeApply) && !invokeApply);        promise.then(null, null, fn); | 
