cosmetic changes

This commit is contained in:
rolux 2014-02-17 11:44:24 +05:30
parent 3ce2852a99
commit fae278abf0

View file

@ -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) {