From bf533cd2fe257df0e2d7b3e81503bc1e470cb1ca Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Sat, 8 Oct 2011 10:54:43 +0000 Subject: [PATCH] fix another url controller bug with '/=foo' --- source/Ox.UI/js/Core/Ox.URL.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/Ox.UI/js/Core/Ox.URL.js b/source/Ox.UI/js/Core/Ox.URL.js index 06a6a37d..d269749e 100644 --- a/source/Ox.UI/js/Core/Ox.URL.js +++ b/source/Ox.UI/js/Core/Ox.URL.js @@ -311,10 +311,10 @@ Ox.URL = function(options) { if (!condition.operator) { // missing operator condition = {key: '*', value: condition.value, operator: '='}; - } else if ( - condition.key - && Ox.getPositionById(self.options.findKeys, condition.key) == -1 - ) { + } else if (!condition.key) { + // missing key + condition.key = '*'; + } else if (Ox.getPositionById(self.options.findKeys, condition.key) == -1) { // unknown key condition = {key: '*', value: str, operator: '='}; }