aboutsummaryrefslogtreecommitdiffstats
path: root/src/services.js
diff options
context:
space:
mode:
authorRob Spies2010-07-13 14:09:53 -0700
committerRob Spies2010-07-13 14:09:53 -0700
commit4034a2d1e2efb6c76020273c96c3da5ae146f5ca (patch)
tree529e6660bab9237aca3218e67902f1eea44bd260 /src/services.js
parent8f9bf37bcf38165e89f37c147f9315cb8e72fc1f (diff)
downloadangular.js-4034a2d1e2efb6c76020273c96c3da5ae146f5ca.tar.bz2
better naming for our verify cache scheme, and tests.
Diffstat (limited to 'src/services.js')
-rw-r--r--src/services.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/services.js b/src/services.js
index 64f2ea4f..ed6f73ad 100644
--- a/src/services.js
+++ b/src/services.js
@@ -313,7 +313,7 @@ angularService('$xhr.bulk', function($xhr, $error, $log){
angularService('$xhr.cache', function($xhr){
var inflight = {}, self = this;;
- function cache(method, url, post, callback, cacheThenRetrieve){
+ function cache(method, url, post, callback, verifyCache){
if (isFunction(post)) {
callback = post;
post = null;
@@ -322,7 +322,7 @@ angularService('$xhr.cache', function($xhr){
var data;
if (data = cache.data[url]) {
callback(200, copy(data.value));
- if (!cacheThenRetrieve)
+ if (!verifyCache)
return;
}