forked from datopian/datahub
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[datopian#425] Fix Dataset.query() when called with Query model
The problem is that Backbone >= 0.9.9 doesn't accept anymore updating models with: model.set(otherModel); That needs to be changed to: model.set(otherModel.attributes); Dataset.query() accepts both regular JS objects and Query models, so we need to check the parameter type to support both.
- Loading branch information
1 parent
fa1e4d3
commit 2a9f092
Showing
2 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters