From b4f4c989cc8f68dabca62b5b683a19bb9b282b77 Mon Sep 17 00:00:00 2001 From: Rufus Pollock Date: Sun, 2 Jun 2013 19:03:42 +0100 Subject: [PATCH] [view/multiview][s]: do not call fetch on dataset model in MultiView initialize (should be done in code using the view if needed). * fetch method should have been done elsewhere (by client of the view) * calling in the view is both wasteful and causes possible bugs as it may lead to race conditions to a fetch called by client code --- src/view.multiview.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/view.multiview.js b/src/view.multiview.js index 46f027b1..ccd35171 100644 --- a/src/view.multiview.js +++ b/src/view.multiview.js @@ -228,10 +228,6 @@ my.MultiView = Backbone.View.extend({ // note this.model and dataset returned are the same // TODO: set query state ...? this.model.queryState.set(self.state.get('query'), {silent: true}); - this.model.fetch() - .fail(function(error) { - self.notify({message: error.message, category: 'error', persist: true}); - }); }, setReadOnly: function() {