[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:
Rufus Pollock 2012-04-01 16:37:43 +01:00
parent 7a95302760
commit ae8a3ddab0

View File

@ -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) {