cosmetic changes
This commit is contained in:
parent
3ce2852a99
commit
fae278abf0
1 changed files with 5 additions and 6 deletions
|
@ -444,12 +444,11 @@ Ox.URL = function(options) {
|
||||||
function constructCondition(condition) {
|
function constructCondition(condition) {
|
||||||
var key = condition.key == '*' ? '' : condition.key,
|
var key = condition.key == '*' ? '' : condition.key,
|
||||||
operator = condition.operator,
|
operator = condition.operator,
|
||||||
value;
|
value = (
|
||||||
value = (
|
Ox.isArray(condition.value) ? condition.value : [condition.value]
|
||||||
Ox.isArray(condition.value) ? condition.value : [condition.value]
|
).map(function(value) {
|
||||||
).map(function(value) {
|
return encodeValue(constructValue(value, condition.key));
|
||||||
return encodeValue(constructValue(value, condition.key));
|
}).join(',');
|
||||||
}).join(',');
|
|
||||||
if (!key) {
|
if (!key) {
|
||||||
operator = operator.replace('=', '');
|
operator = operator.replace('=', '');
|
||||||
} else if (operator.indexOf('^') > -1) {
|
} else if (operator.indexOf('^') > -1) {
|
||||||
|
|
Loading…
Reference in a new issue