From 36da5c6e3e789667f84d04d0fd941c22bc058090 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joan=20Guill=C3=A9n=20i=20Pelegay?= Date: Wed, 13 May 2020 02:45:24 +0200 Subject: [PATCH] Fixing localVars drawing on the palette --- src/objects.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/objects.js b/src/objects.js index c9994a97..aa0d875e 100644 --- a/src/objects.js +++ b/src/objects.js @@ -6794,17 +6794,13 @@ SpriteMorph.prototype.hasSpriteVariable = function (varName) { }; SpriteMorph.prototype.allLocalVariableNames = function (sorted) { - var exceptGlobals = this.globalVariables(), - globalNames = exceptGlobals.names(), - data; + var data; function alphabetically(x, y) { return x.toLowerCase() < y.toLowerCase() ? -1 : 1; } - data = this.variables.allNames(exceptGlobals).filter(each => - !contains(globalNames, each) - ); + data = this.variables.names(); if (sorted) { data.sort(alphabetically); }