From 6bf4df7f0f1340de899e819b1b5ccc0235d11aca Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Thu, 8 Mar 2012 12:39:48 -0500 Subject: [PATCH] Add some missing context.restore() calls --- dygraph-canvas.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dygraph-canvas.js b/dygraph-canvas.js index 6e15a58..03bc5e3 100644 --- a/dygraph-canvas.js +++ b/dygraph-canvas.js @@ -186,6 +186,7 @@ DygraphCanvasRenderer.prototype.render = function() { ctx.closePath(); ctx.stroke(); } + ctx.restore(); } if (this.attr_('drawXGrid')) { @@ -202,6 +203,7 @@ DygraphCanvasRenderer.prototype.render = function() { ctx.closePath(); ctx.stroke(); } + ctx.restore(); } // Do the ordinary rendering, as before -- 2.7.4