From: Dan Vanderkam Date: Thu, 8 Mar 2012 17:39:48 +0000 (-0500) Subject: Add some missing context.restore() calls X-Git-Tag: v1.0.0~313 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=6bf4df7f0f1340de899e819b1b5ccc0235d11aca;p=dygraphs.git Add some missing context.restore() calls --- 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