mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-09 15:24:43 +00:00
fixing missing dependency
This commit is contained in:
parent
ab040254f0
commit
99004b0aed
1 changed files with 3 additions and 3 deletions
|
|
@ -902,7 +902,7 @@ angularServiceInject('$defer', function($browser, $exceptionHandler, $updateView
|
||||||
*
|
*
|
||||||
* @example
|
* @example
|
||||||
*/
|
*/
|
||||||
angularServiceInject('$xhr.cache', function($xhr, $defer){
|
angularServiceInject('$xhr.cache', function($xhr, $defer, $log){
|
||||||
var inflight = {}, self = this;
|
var inflight = {}, self = this;
|
||||||
function cache(method, url, post, callback, verifyCache){
|
function cache(method, url, post, callback, verifyCache){
|
||||||
if (isFunction(post)) {
|
if (isFunction(post)) {
|
||||||
|
|
@ -930,7 +930,7 @@ angularServiceInject('$xhr.cache', function($xhr, $defer){
|
||||||
try {
|
try {
|
||||||
(callback||noop)(status, copy(response));
|
(callback||noop)(status, copy(response));
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
self.$log.error(e);
|
$log.error(e);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
@ -944,7 +944,7 @@ angularServiceInject('$xhr.cache', function($xhr, $defer){
|
||||||
cache.data = {};
|
cache.data = {};
|
||||||
cache.delegate = $xhr;
|
cache.delegate = $xhr;
|
||||||
return cache;
|
return cache;
|
||||||
}, ['$xhr.bulk', '$defer']);
|
}, ['$xhr.bulk', '$defer', '$log']);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue