FIX: Warnings in Qunit suite
This commit is contained in:
parent
bda5a72c6a
commit
9cbfd8362d
|
@ -12,17 +12,17 @@ function finderFor(filter, params) {
|
||||||
var url = Discourse.getURL("/") + filter + ".json";
|
var url = Discourse.getURL("/") + filter + ".json";
|
||||||
|
|
||||||
if (params) {
|
if (params) {
|
||||||
var keys = Object.keys(params);
|
var keys = Object.keys(params),
|
||||||
|
encoded = [];
|
||||||
|
|
||||||
if (keys.length > 0) {
|
keys.forEach(function(p) {
|
||||||
var encoded = [];
|
var value = params[p];
|
||||||
keys.forEach(function(p) {
|
if (typeof value !== 'undefined') {
|
||||||
var value = params[p];
|
encoded.push(p + "=" + value);
|
||||||
if (typeof value !== 'undefined') {
|
}
|
||||||
encoded.push(p + "=" + value);
|
});
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
|
if (encoded.length > 0) {
|
||||||
url += "?" + encoded.join('&');
|
url += "?" + encoded.join('&');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue