fixing missing dependency

This commit is contained in:
Igor Minar 2011-01-10 23:28:47 -08:00
parent ab040254f0
commit 99004b0aed

View file

@ -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']);
/** /**