From f6dc590b3cace2c7710e450c2d227026dbeeef26 Mon Sep 17 00:00:00 2001 From: Rufus Pollock Date: Fri, 24 Feb 2012 09:07:59 +0000 Subject: [PATCH] [view/flot-graph,bugfix][xs]: fix exception on data change when flot not visible. --- src/view-flot-graph.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/view-flot-graph.js b/src/view-flot-graph.js index a27179ba..5bd1afe5 100644 --- a/src/view-flot-graph.js +++ b/src/view-flot-graph.js @@ -137,7 +137,7 @@ my.FlotGraph = Backbone.View.extend({ // Uncaught Invalid dimensions for plot, width = 0, height = 0 // * There is no data for the plot -- either same error or may have issues later with errors like 'non-existent node-value' var areWeVisible = !jQuery.expr.filters.hidden(this.el[0]); - if (!this.plot && (!areWeVisible || this.model.currentDocuments.length == 0)) { + if ((!areWeVisible || this.model.currentDocuments.length == 0)) { return } // create this.plot and cache it