From d033ae1cf08f81a58b4c91ecc407a389c8e0797a Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Mon, 14 Dec 2009 05:36:45 -0800 Subject: [PATCH] make zoom out work again --- dygraph.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dygraph.js b/dygraph.js index 386781d..016f106 100644 --- a/dygraph.js +++ b/dygraph.js @@ -1248,9 +1248,7 @@ Dygraph.prototype.drawGraph_ = function(data) { this.addXTicks_(); // Tell PlotKit to use this new data and render itself - if (this.dateWindow_) { - this.layout_.updateOptions({dateWindow: this.dateWindow_}); - } + this.layout_.updateOptions({dateWindow: this.dateWindow_}); this.layout_.evaluateWithError(); this.plotter_.clear(); this.plotter_.render(); -- 2.7.4