mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +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
|
||||
*/
|
||||
angularServiceInject('$xhr.cache', function($xhr, $defer){
|
||||
angularServiceInject('$xhr.cache', function($xhr, $defer, $log){
|
||||
var inflight = {}, self = this;
|
||||
function cache(method, url, post, callback, verifyCache){
|
||||
if (isFunction(post)) {
|
||||
|
|
@ -930,7 +930,7 @@ angularServiceInject('$xhr.cache', function($xhr, $defer){
|
|||
try {
|
||||
(callback||noop)(status, copy(response));
|
||||
} catch(e) {
|
||||
self.$log.error(e);
|
||||
$log.error(e);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
@ -944,7 +944,7 @@ angularServiceInject('$xhr.cache', function($xhr, $defer){
|
|||
cache.data = {};
|
||||
cache.delegate = $xhr;
|
||||
return cache;
|
||||
}, ['$xhr.bulk', '$defer']);
|
||||
}, ['$xhr.bulk', '$defer', '$log']);
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue