From ae8a3ddab018399722180bb194a7c26bd251bc2a Mon Sep 17 00:00:00 2001 From: Rufus Pollock Date: Sun, 1 Apr 2012 16:37:43 +0100 Subject: [PATCH] [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. --- src/model.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/model.js b/src/model.js index ffa8cc8a..f6cca92a 100644 --- a/src/model.js +++ b/src/model.js @@ -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) {