From: Dan Vanderkam Date: Mon, 14 Dec 2009 13:36:45 +0000 (-0800) Subject: make zoom out work again X-Git-Tag: v1.0.0~782 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=d033ae1cf08f81a58b4c91ecc407a389c8e0797a;p=dygraphs.git make zoom out work again --- 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();