From: Robert Konigsberg Date: Thu, 30 May 2013 16:58:40 +0000 (-0400) Subject: Remove the vestigial DygraphLayout.setDateWindow. X-Git-Tag: v1.0.0~28 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=ad617f174a6b4ec2aea3d06553534dcaf278a2bb;p=dygraphs.git Remove the vestigial DygraphLayout.setDateWindow. (Also, add a clarifying comment.) --- diff --git a/dygraph-layout.js b/dygraph-layout.js index 4b600f7..54496aa 100644 --- a/dygraph-layout.js +++ b/dygraph-layout.js @@ -63,7 +63,7 @@ DygraphLayout.prototype.getPlotArea = function() { }; // Compute the box which the chart should be drawn in. This is the canvas's -// box, less space needed for axis and chart labels. +// box, less space needed for axis, chart labels, and other plug-ins. // NOTE: This should only be called by Dygraph.predraw_(). DygraphLayout.prototype.computePlotArea = function() { var area = { @@ -162,10 +162,6 @@ DygraphLayout.prototype.setYAxes = function (yAxes) { this.yAxes_ = yAxes; }; -DygraphLayout.prototype.setDateWindow = function(dateWindow) { - this.dateWindow_ = dateWindow; -}; - DygraphLayout.prototype.evaluate = function() { this._evaluateLimits(); this._evaluateLineCharts(); diff --git a/dygraph.js b/dygraph.js index 5e4ba62..6728bc4 100644 --- a/dygraph.js +++ b/dygraph.js @@ -2480,7 +2480,6 @@ Dygraph.prototype.drawGraph_ = function() { // Save the X axis zoomed status as the updateOptions call will tend to set it erroneously var tmp_zoomed_x = this.zoomed_x_; // Tell PlotKit to use this new data and render itself - this.layout_.setDateWindow(this.dateWindow_); this.zoomed_x_ = tmp_zoomed_x; this.layout_.evaluateWithError(); this.renderGraph_(is_initial_draw);