Commits

cleonello  committed cf7e482

Removed extra canvas restore() calls in marker renderers. Thanks Nitin.

  • Participants
  • Parent commits 13d94a8

Comments (0)

Files changed (1)

File src/jqplot.markerRenderer.js

         }
         this.shapeRenderer.draw(ctx, points, options);
 
-        ctx.restore();
+        // ctx.restore();
     };
     
     $.jqplot.MarkerRenderer.prototype.drawPlus = function(x, y, ctx, fill, options) {
         this.shapeRenderer.draw(ctx, points1, opts);
         this.shapeRenderer.draw(ctx, points2, opts);
 
-        ctx.restore();
+        // ctx.restore();
     };
     
     $.jqplot.MarkerRenderer.prototype.drawX = function(x, y, ctx, fill, options) {
         this.shapeRenderer.draw(ctx, points1, opts);
         this.shapeRenderer.draw(ctx, points2, opts);
 
-        ctx.restore();
+        // ctx.restore();
     };
     
     $.jqplot.MarkerRenderer.prototype.drawDash = function(x, y, ctx, fill, options) {
         }
         this.shapeRenderer.draw(ctx, points, options);
 
-        ctx.restore();
+        // ctx.restore();
     };
     
     $.jqplot.MarkerRenderer.prototype.drawSquare = function(x, y, ctx, fill, options) {
         }
         this.shapeRenderer.draw(ctx, points, options);
 
-        ctx.restore();
+        // ctx.restore();
     };
     
     $.jqplot.MarkerRenderer.prototype.drawCircle = function(x, y, ctx, fill, options) {
         }
         this.shapeRenderer.draw(ctx, points, options);
         
-        ctx.restore();
+        // ctx.restore();
     };
     
     $.jqplot.MarkerRenderer.prototype.draw = function(x, y, ctx, options) {