From c1706f2164d4a1ea9eaa04209651281f679ef738 Mon Sep 17 00:00:00 2001 From: Yichuan Shen Date: Thu, 15 Dec 2016 21:38:38 +0100 Subject: [PATCH] Fix undefined variable --- browser/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/browser/index.js b/browser/index.js index 60881cbbb..9e65db0c2 100644 --- a/browser/index.js +++ b/browser/index.js @@ -1472,7 +1472,8 @@ sabaki.useTool = function(vertex, tool = null, buttonIndex = 0) { // Remove residue - k = node[ids[i]].indexOf(point) + let k = node[ids[i]].indexOf(point) + if (k >= 0) { node[ids[i]].splice(k, 1)