40618ea5 by Adam Heath

Fix option passing, so that skipSearch can be honored.

1 parent aaeb532d
......@@ -178,8 +178,8 @@ define(function(require) {
this.set('items', new ItemCollection([]));
this.set('comparator', options.comparator, {silent: true});
this.trigger('change:comparator');
this.get('items').on('item-change', function() {
this.trigger('item-change');
this.get('items').on('item-change', function(model, value, options) {
this.trigger('item-change', null, null, options);
}, this);
this.facetType = options.facetType;
this.facetStats = options.facetStats;
......@@ -308,7 +308,7 @@ define(function(require) {
});
break;
}
items.set(newItems, {remove: false});
items.set(newItems, _.extend(options, {remove: false}));
if (this.facetStats) {
var thisFacetStats = statsFields[facetName];
this.set({minValue: thisFacetStats.min, maxValue: thisFacetStats.max});
......
......@@ -166,7 +166,7 @@ define(function(require) {
}
var facets = this.get('facets');
if (this.get('options').get('faceting')) {
facets.applyFacetResults(data);
facets.applyFacetResults(data, skipOptions);
} else {
facets.resetSearch(options);
}
......