Skip to content

Commit 4e90bbe

Browse files
committed
Fix another regression
1 parent 486cfab commit 4e90bbe

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

modules/mixins/ActiveDelegate.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,17 @@ function routeIsActive(activeRoutes, routeName) {
88
}
99

1010
function paramsAreActive(activeParams, params) {
11-
for (var property in params) {
12-
if (activeParams[property] != params[property])
11+
for (var property in params)
12+
if (String(activeParams[property]) !== String(params[property]))
1313
return false;
14-
}
1514

1615
return true;
1716
}
1817

1918
function queryIsActive(activeQuery, query) {
20-
for (var property in query) {
21-
if (activeQuery[property] != query[property])
19+
for (var property in query)
20+
if (String(activeQuery[property]) !== String(query[property]))
2221
return false;
23-
}
2422

2523
return true;
2624
}

0 commit comments

Comments
 (0)