Changes VS.model.SearchQuery.find() to return the facet object or undefined.
Previously it would return the value of the facet. It seems that a collection find() method should return a model instance (if found). This method isn't called anywhere else, so the change should allow easier programmatic access to facets in the searchQuery collection without introducing errors.
Unfortunately, this is a breaking API change. Also, if what you want is the internal data structure (the facet model), then feel free to directly address the facet collection and grab it.
Changes
VS.model.SearchQuery.find()
to return the facet object or undefined.Previously it would return the value of the facet. It seems that a collection
find()
method should return a model instance (if found). This method isn't called anywhere else, so the change should allow easier programmatic access to facets in thesearchQuery
collection without introducing errors.