[#369] fix angular minify

This commit is contained in:
Alexander Machehin 2014-04-22 18:58:02 +06:00
parent a5a645ccbf
commit 319200c2b6
1 changed files with 5 additions and 9 deletions

View File

@ -25,7 +25,7 @@ angular.module('ajoslin.promise-tracker')
*/ */
//angular versions before 1.1.4 use responseInterceptor format //angular versions before 1.1.4 use responseInterceptor format
.factory('trackerResponseInterceptor', function($q, promiseTracker, $injector) { .factory('trackerResponseInterceptor', ['$q', 'promiseTracker', '$injector', function($q, promiseTracker, $injector) {
//We use $injector get around circular dependency problem for $http //We use $injector get around circular dependency problem for $http
var $http; var $http;
return function spinnerResponseInterceptor(promise) { return function spinnerResponseInterceptor(promise) {
@ -37,9 +37,9 @@ angular.module('ajoslin.promise-tracker')
} }
return promise; return promise;
}; };
}) }])
.factory('trackerHttpInterceptor', function($q, promiseTracker, $injector) { .factory('trackerHttpInterceptor', ['$q', 'promiseTracker', '$injector', function($q, promiseTracker, $injector) {
return { return {
request: function(config) { request: function(config) {
if (config.tracker) { if (config.tracker) {
@ -61,10 +61,7 @@ angular.module('ajoslin.promise-tracker')
return $q.reject(response); return $q.reject(response);
} }
}; };
}) }]);
;
angular.module('ajoslin.promise-tracker') angular.module('ajoslin.promise-tracker')
@ -238,5 +235,4 @@ angular.module('ajoslin.promise-tracker')
return trackers[trackerName]; return trackers[trackerName];
}; };
}]; }];
}) });
;