kopia lustrzana https://github.com/backface/turtlestitch
Merge pull request #2587 from jguille2/fixingLocalVarPalette
Fixing localVars drawing on the palettepull/95/head
commit
101fde7773
|
|
@ -6811,17 +6811,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);
|
||||
}
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue