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) {
ordering: new Ordering({items: constructor.orderingItems}, {parse: true}),
facets: facets,
queryFields: queryFields,
options: this._options,
};
},
applyQueryParameters: function() {
......@@ -149,7 +150,7 @@ define(function(require) {
},
initialize: function(data, options) {
options = (options || {});
this.set('options', new Backbone.Model({
this.set('options', this._options = new Backbone.Model({
faceting: !!options.faceting,
highlighting: !!options.highlighting,
showAll: !!options.showAll,
......