aboutsummaryrefslogtreecommitdiffstats
path: root/src/service/xhr.cache.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/service/xhr.cache.js')
-rw-r--r--src/service/xhr.cache.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/service/xhr.cache.js b/src/service/xhr.cache.js
index 256b936e..14051c40 100644
--- a/src/service/xhr.cache.js
+++ b/src/service/xhr.cache.js
@@ -52,7 +52,7 @@ angularServiceInject('$xhr.cache', function($xhr, $defer, $error, $log) {
if (method == 'GET') {
var data, dataCached;
- if (dataCached = cache.data[url]) {
+ if ((dataCached = cache.data[url])) {
if (sync) {
success(200, copy(dataCached.value));
@@ -64,7 +64,7 @@ angularServiceInject('$xhr.cache', function($xhr, $defer, $error, $log) {
return;
}
- if (data = inflight[url]) {
+ if ((data = inflight[url])) {
data.successes.push(success);
data.errors.push(error);
} else {