kopia lustrzana https://github.com/backface/turtlestitch
fixed display of inherited sprite-local variables
rodzic
e879808217
commit
a37dfa340f
|
@ -10,6 +10,11 @@
|
|||
* hyperized "VIDEO _ ON _" reporter primitive
|
||||
* **Documentation Updates:**
|
||||
* API update for "loadProjectXML"
|
||||
* **Notable Fixes:**
|
||||
* fixed display of inherited sprite-local variables
|
||||
|
||||
### 2020-11-22
|
||||
* objects: fixed display of inherited sprite-local variables
|
||||
|
||||
### 2020-11-21
|
||||
* new dev version
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
<script src="src/widgets.js?version=2020-10-06"></script>
|
||||
<script src="src/blocks.js?version=2020-11-21"></script>
|
||||
<script src="src/threads.js?version=2020-11-21"></script>
|
||||
<script src="src/objects.js?version=2020-11-20"></script>
|
||||
<script src="src/objects.js?version=2020-11-22"></script>
|
||||
<script src="src/gui.js?version=2020-11-21"></script>
|
||||
<script src="src/paint.js?version=2020-05-17"></script>
|
||||
<script src="src/lists.js?version=2020-07-01"></script>
|
||||
|
|
|
@ -84,7 +84,7 @@ BlockEditorMorph, BlockDialogMorph, PrototypeHatBlockMorph, BooleanSlotMorph,
|
|||
localize, TableMorph, TableFrameMorph, normalizeCanvas, VectorPaintEditorMorph,
|
||||
AlignmentMorph, Process, WorldMap, copyCanvas, useBlurredShadows*/
|
||||
|
||||
modules.objects = '2020-November-20';
|
||||
modules.objects = '2020-November-22';
|
||||
|
||||
var SpriteMorph;
|
||||
var StageMorph;
|
||||
|
@ -6919,13 +6919,17 @@ SpriteMorph.prototype.hasSpriteVariable = function (varName) {
|
|||
};
|
||||
|
||||
SpriteMorph.prototype.allLocalVariableNames = function (sorted) {
|
||||
var data;
|
||||
var exceptGlobals = this.globalVariables(),
|
||||
globalNames = exceptGlobals.names(),
|
||||
data;
|
||||
|
||||
function alphabetically(x, y) {
|
||||
return x.toLowerCase() < y.toLowerCase() ? -1 : 1;
|
||||
}
|
||||
|
||||
data = this.variables.names();
|
||||
data = this.variables.allNames(exceptGlobals).filter(each =>
|
||||
!contains(globalNames, each)
|
||||
);
|
||||
if (sorted) {
|
||||
data.sort(alphabetically);
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue