diff options
| author | Derek Hammer | 2013-10-15 17:16:01 -0700 | 
|---|---|---|
| committer | Pete Bacon Darwin | 2013-10-28 19:45:00 +0000 | 
| commit | 6d23591c31f2b41097ceaa380af09998e4a62f09 (patch) | |
| tree | 83a3dbf2745fc7e51b36742ff836a968c99232c8 | |
| parent | 18ae985c3a3147b589c22f6ec21bacad2f578e2b (diff) | |
| download | angular.js-6d23591c31f2b41097ceaa380af09998e4a62f09.tar.bz2 | |
fix(angular-mocks): add inline dependency annotation
Annotation allows the angular-mocks to be minified, which sometimes happens with frameworks that
automatically process files before running tests.
Also, some developers have been using this library in code for their applications.
This is not recommended as the library is only designed to support testing and not production
applications.  If you are likely to want to use the code here in production you would be best
forking and maintaining your own version of the code as we will not guarantee that we won't
break the annotation of the code in the future.
Closes #4448
| -rw-r--r-- | src/ngMock/angular-mocks.js | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/src/ngMock/angular-mocks.js b/src/ngMock/angular-mocks.js index c029dcc3..b854501d 100644 --- a/src/ngMock/angular-mocks.js +++ b/src/ngMock/angular-mocks.js @@ -1726,9 +1726,9 @@ angular.module('ngMock', ['ng']).provider({    $interval: angular.mock.$IntervalProvider,    $httpBackend: angular.mock.$HttpBackendProvider,    $rootElement: angular.mock.$RootElementProvider -}).config(function($provide) { +}).config(['$provide', function($provide) {    $provide.decorator('$timeout', angular.mock.$TimeoutDecorator); -}); +}]);  /**   * @ngdoc overview @@ -1739,9 +1739,9 @@ angular.module('ngMock', ['ng']).provider({   * Currently there is only one mock present in this module -   * the {@link ngMockE2E.$httpBackend e2e $httpBackend} mock.   */ -angular.module('ngMockE2E', ['ng']).config(function($provide) { +angular.module('ngMockE2E', ['ng']).config(['$provide', function($provide) {    $provide.decorator('$httpBackend', angular.mock.e2e.$httpBackendDecorator); -}); +}]);  /**   * @ngdoc object | 
