aboutsummaryrefslogtreecommitdiffstats
path: root/src/service
diff options
context:
space:
mode:
Diffstat (limited to 'src/service')
-rw-r--r--src/service/route.js2
-rw-r--r--src/service/xhr.cache.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/service/route.js b/src/service/route.js
index 9b4db0dd..5741c940 100644
--- a/src/service/route.js
+++ b/src/service/route.js
@@ -216,7 +216,7 @@ angularServiceInject('$route', function($location) {
// Match a route
forEach(routes, function(rParams, rPath) {
if (!pathParams) {
- if (pathParams = matcher($location.hashPath, rPath)) {
+ if ((pathParams = matcher($location.hashPath, rPath))) {
selectedRoute = rParams;
}
}
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 {