Merge remote-tracking branch 'topface/disabled-filters' into filterDefaults

This commit is contained in:
Rashid Khan 2013-12-03 15:01:32 -07:00
commit cbdd3965cc

View File

@ -51,8 +51,12 @@ define([
// If an id is passed, the filter at that id is updated
this.set = function(filter,id,noRefresh) {
var _r;
_.defaults(filter,{mandate:'must'});
filter.active = true;
_.defaults(filter,{
mandate:'must',
active: true
});
if(!_.isUndefined(id)) {
if(!_.isUndefined(self.list[id])) {
_.extend(self.list[id],filter);