Fix tiny, critical bug

This commit is contained in:
Tom MacWright 2012-12-20 17:42:41 -05:00
parent 607c4dba5a
commit f4722f516e

View File

@ -66,7 +66,7 @@ tree.Filterset.prototype.cloneWith = function(other) {
// We can add the rules that are already present without going through the
// add function as a Filterset is always in it's simplest canonical form.
for (id in this.filters) {
clone[id] = this.filters[id];
clone.filters[id] = this.filters[id];
}
// Only add new filters that actually change the filter.
@ -90,7 +90,7 @@ tree.Filterset.prototype.addable = function(filter) {
case '=':
// if there is already foo= and we're adding foo=
if (key + '=' in this.filters) {
if (this.filters[key + '='].val != value) {
if (this.filters[key + '='].val.toString() != value) {
return false;
} else {
return null;