res += field + "=" + value.replace(/[\\|,]/g, '\\$&');
});
return res;
- }
+ };
that.pp2catLimit = function() {
var res = "";
res += "category~" + id.replace(/[\\,]/g, '\\$&');
});
return res;
- }
+ };
// Returns a hash of key=value pairs representing the filter-set
// These will become part of the URL-fragment representing the state
}
return hash;
- }
+ };
+
+ that.deepCopy = function() {
+ var fs = filterSet(m_team);
+ fs._setList($.extend([], m_list));
+ return fs;
+ };
+
+ // Used only by clone()
+ that._setList = function(list) {
+ m_list = list;
+ };
return that;
}