update normalizeHashQuery method

This commit is contained in:
rolux 2013-02-20 10:29:54 +05:30
parent d7ef772181
commit fdb37b15d2

View file

@ -1085,6 +1085,12 @@ pandora.normalizeHashQuery = function(state) {
newState.hash.query = newState.hash.query.filter(function(condition) {
return !Ox.contains(removeKeys, condition.key);
});
if (Ox.isEmpty(newState.hash.query)) {
delete newState.hash.query;
}
}
if (Ox.isEmpty(newState.hash)) {
delete newState.hash;
}
return newState;
};