[model][xs]: remove HACK code that is no longer needed.
* Code is obsolete because issue it addressed arose from binding to all event on queryState and we no longer do that.
This commit is contained in:
parent
7a95302760
commit
ae8a3ddab0
@ -41,10 +41,6 @@ my.Dataset = Backbone.Model.extend({
|
||||
query: function(queryObj) {
|
||||
var self = this;
|
||||
this.trigger('query:start');
|
||||
// HACK: query gets called on event changes and it appears that in those cases the type of event gets passed as first argument. The following handles those cases.
|
||||
if (typeof(queryObj) != 'object') {
|
||||
queryObj = null;
|
||||
}
|
||||
var actualQuery = self._prepareQuery(queryObj);
|
||||
var dfd = $.Deferred();
|
||||
this.backend.query(this, actualQuery).done(function(queryResult) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user