From 1a9ee9fb0f607008789501f12fe11cbf893c7729 Mon Sep 17 00:00:00 2001 From: inventivetalent Date: Fri, 19 Oct 2018 17:20:10 +0200 Subject: [PATCH] remove unnecessary stroke/fill calls --- src/litegraph.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/litegraph.js b/src/litegraph.js index 6f7d041cc..651444a38 100755 --- a/src/litegraph.js +++ b/src/litegraph.js @@ -5250,8 +5250,6 @@ LGraphCanvas.prototype.drawNode = function(node, ctx ) ctx.lineTo(pos[0] - 4, (pos[1] + 6) + 0.5); ctx.lineTo(pos[0] - 4, (pos[1] - 6) + 0.5); ctx.closePath(); - - ctx.fill(); } else { ctx.arc(pos[0], pos[1], 4, 0, Math.PI * 2); } @@ -5299,9 +5297,6 @@ LGraphCanvas.prototype.drawNode = function(node, ctx ) ctx.lineTo(pos[0] - 4, (pos[1] + 6) + 0.5); ctx.lineTo(pos[0] - 4, (pos[1] - 6) + 0.5); ctx.closePath(); - - ctx.stroke(); - ctx.fill(); } else { ctx.arc(pos[0], pos[1], 4, 0, Math.PI * 2); }