X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=dygraph.js;h=bd11c24c573078356f9446292939a121c19c6fae;hb=24e420411024c92bc458d10db8aba29f8ca64b73;hp=4ab7539e1808520a34ee5da8c9adecdc3524c806;hpb=0565e8fd2bbe4666e66d241f410e7e846e616b55;p=dygraphs.git diff --git a/dygraph.js b/dygraph.js index 4ab7539..bd11c24 100644 --- a/dygraph.js +++ b/dygraph.js @@ -1051,7 +1051,7 @@ Dygraph.prototype.resizeElements_ = function() { this.canvas_.height = this.height_; this.canvas_.style.width = this.width_ + "px"; // for IE this.canvas_.style.height = this.height_ + "px"; // for IE -} +}; /** * Detach DOM elements in the dygraph and null out all data references. @@ -1371,7 +1371,7 @@ Dygraph.prototype.createDragInterface_ = function() { context.tarp.uncover(); }; - this.addAndTrackEvent(document, 'mouseup', this.mouseUpHandler); + this.addAndTrackEvent(document, 'mouseup', mouseUpHandler); }; /** @@ -2484,7 +2484,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);