40618ea5 by Adam Heath

Fix option passing, so that skipSearch can be honored.

1 parent aaeb532d
...@@ -178,8 +178,8 @@ define(function(require) { ...@@ -178,8 +178,8 @@ define(function(require) {
178 this.set('items', new ItemCollection([])); 178 this.set('items', new ItemCollection([]));
179 this.set('comparator', options.comparator, {silent: true}); 179 this.set('comparator', options.comparator, {silent: true});
180 this.trigger('change:comparator'); 180 this.trigger('change:comparator');
181 this.get('items').on('item-change', function() { 181 this.get('items').on('item-change', function(model, value, options) {
182 this.trigger('item-change'); 182 this.trigger('item-change', null, null, options);
183 }, this); 183 }, this);
184 this.facetType = options.facetType; 184 this.facetType = options.facetType;
185 this.facetStats = options.facetStats; 185 this.facetStats = options.facetStats;
...@@ -308,7 +308,7 @@ define(function(require) { ...@@ -308,7 +308,7 @@ define(function(require) {
308 }); 308 });
309 break; 309 break;
310 } 310 }
311 items.set(newItems, {remove: false}); 311 items.set(newItems, _.extend(options, {remove: false}));
312 if (this.facetStats) { 312 if (this.facetStats) {
313 var thisFacetStats = statsFields[facetName]; 313 var thisFacetStats = statsFields[facetName];
314 this.set({minValue: thisFacetStats.min, maxValue: thisFacetStats.max}); 314 this.set({minValue: thisFacetStats.min, maxValue: thisFacetStats.max});
......
...@@ -166,7 +166,7 @@ define(function(require) { ...@@ -166,7 +166,7 @@ define(function(require) {
166 } 166 }
167 var facets = this.get('facets'); 167 var facets = this.get('facets');
168 if (this.get('options').get('faceting')) { 168 if (this.get('options').get('faceting')) {
169 facets.applyFacetResults(data); 169 facets.applyFacetResults(data, skipOptions);
170 } else { 170 } else {
171 facets.resetSearch(options); 171 facets.resetSearch(options);
172 } 172 }
......