aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIgor Minar2011-01-10 23:28:47 -0800
committerIgor Minar2011-01-10 23:28:47 -0800
commit99004b0aedeac77663db08873975d4273eef19bf (patch)
tree7215b17f94e95daea3b086a2e0dda3dc69786320 /src
parentab040254f084d3b6d6f51d0503c750c118eef0c1 (diff)
downloadangular.js-99004b0aedeac77663db08873975d4273eef19bf.tar.bz2
fixing missing dependency
Diffstat (limited to 'src')
-rw-r--r--src/services.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/services.js b/src/services.js
index 2e5c1893..b9325721 100644
--- a/src/services.js
+++ b/src/services.js
@@ -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']);
/**