- var values = v.split("^");
- for(var i = 0, len = values.length; i < len; i++){
- var kv = values[i].split("=");
- all[kv[0]] = this.decodeValue(kv[1]);
+ if(v != ''){
+ Ext.each(v.split('^'), function(val){
+ var kv = val.split('=');
+ all[kv[0]] = this.decodeValue(kv[1]);
+ }, this);