1ff6c76a by Adam Heath

Save options as a class property, so that if someone reapplies the

defaults, the options will be remembered.

Refs: #7829
1 parent f625e0de
...@@ -52,6 +52,7 @@ define(function(require) { ...@@ -52,6 +52,7 @@ define(function(require) {
52 ordering: new Ordering({items: constructor.orderingItems}, {parse: true}), 52 ordering: new Ordering({items: constructor.orderingItems}, {parse: true}),
53 facets: facets, 53 facets: facets,
54 queryFields: queryFields, 54 queryFields: queryFields,
55 options: this._options,
55 }; 56 };
56 }, 57 },
57 applyQueryParameters: function() { 58 applyQueryParameters: function() {
...@@ -149,7 +150,7 @@ define(function(require) { ...@@ -149,7 +150,7 @@ define(function(require) {
149 }, 150 },
150 initialize: function(data, options) { 151 initialize: function(data, options) {
151 options = (options || {}); 152 options = (options || {});
152 this.set('options', new Backbone.Model({ 153 this.set('options', this._options = new Backbone.Model({
153 faceting: !!options.faceting, 154 faceting: !!options.faceting,
154 highlighting: !!options.highlighting, 155 highlighting: !!options.highlighting,
155 showAll: !!options.showAll, 156 showAll: !!options.showAll,
......