[#62,model][xs]: trigger re-query (and facet computation) whenever facets change.

* This is far from perfect (we recompute query results as well as facets) but optimizing can come later.
This commit is contained in:
Rufus Pollock 2012-04-01 16:45:31 +01:00
parent ae8a3ddab0
commit 56285f0a07

View File

@ -27,6 +27,7 @@ my.Dataset = Backbone.Model.extend({
this.docCount = null;
this.queryState = new my.Query();
this.queryState.bind('change', this.query);
this.queryState.bind('facet:add', this.query);
},
// ### query