From 633fd78e00e0e8c83c3727d070340af71bfd2374 Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Fri, 15 Feb 2013 15:34:08 -0500 Subject: [PATCH] rv 34ad56b341, which introduced issue 432 --- dygraph-canvas.js | 7 ------- dygraph.js | 2 -- 2 files changed, 9 deletions(-) diff --git a/dygraph-canvas.js b/dygraph-canvas.js index bf1d88d..0e1bc75 100644 --- a/dygraph-canvas.js +++ b/dygraph-canvas.js @@ -57,8 +57,6 @@ var DygraphCanvasRenderer = function(dygraph, element, elementContext, layout) { this.height = this.element.height; this.width = this.element.width; - this.elementContext.save(); - // --- check whether everything is ok before we return if (!this.isIE && !(DygraphCanvasRenderer.isSupported(this.element))) throw "Canvas is not supported."; @@ -127,11 +125,6 @@ DygraphCanvasRenderer.prototype.clear = function() { context.clearRect(0, 0, this.width, this.height); }; -DygraphCanvasRenderer.prototype.onDoneDrawing = function() { - // balances the save called in the constructor. - this.elementContext.restore(); -}; - /** * Checks whether the browser supports the <canvas> tag. * @private diff --git a/dygraph.js b/dygraph.js index f198cff..a02d919 100644 --- a/dygraph.js +++ b/dygraph.js @@ -2200,8 +2200,6 @@ Dygraph.prototype.predraw_ = function() { // If the data or options have changed, then we'd better redraw. this.drawGraph_(); - this.plotter_.onDoneDrawing(); - // This is used to determine whether to do various animations. var end = new Date(); this.drawingTimeMs_ = (end - start); -- 2.7.4