make zoom out work again
authorDan Vanderkam <danvdk@gmail.com>
Mon, 14 Dec 2009 13:36:45 +0000 (05:36 -0800)
committerDan Vanderkam <danvdk@gmail.com>
Mon, 14 Dec 2009 13:36:45 +0000 (05:36 -0800)
dygraph.js

index 386781d..016f106 100644 (file)
@@ -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();