[#369] fix angular minify
This commit is contained in:
parent
a5a645ccbf
commit
319200c2b6
|
@ -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];
|
||||||
};
|
};
|
||||||
}];
|
}];
|
||||||
})
|
});
|
||||||
;
|
|
||||||
|
|
Loading…
Reference in New Issue