kopia lustrzana https://github.com/backface/turtlestitch
fixed #2234 (display all reachable local variables in drop-down menu)
rodzic
779fbeada4
commit
5c8108dee7
|
@ -2,6 +2,9 @@
|
|||
|
||||
## Development version
|
||||
|
||||
###2018-10-29
|
||||
* Blocks: fixed #2234 (display all reachable local variables in drop-down menu)
|
||||
|
||||
## v4.2.2.3
|
||||
* New Features:
|
||||
* new fast atomic "analyze" and "group" reporters in the "Bigger Data" library
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<link rel="shortcut icon" href="src/favicon.ico">
|
||||
<script type="text/javascript" src="src/morphic.js?version=2018-10-02"></script>
|
||||
<script type="text/javascript" src="src/widgets.js?version=2018-10-02"></script>
|
||||
<script type="text/javascript" src="src/blocks.js?version=2018-10-26"></script>
|
||||
<script type="text/javascript" src="src/blocks.js?version=2018-10-29"></script>
|
||||
<script type="text/javascript" src="src/threads.js?version=2018-10-26"></script>
|
||||
<script type="text/javascript" src="src/objects.js?version=2018-10-23"></script>
|
||||
<script type="text/javascript" src="src/gui.js?version=2018-10-29"></script>
|
||||
|
|
|
@ -148,7 +148,7 @@ CustomCommandBlockMorph, SymbolMorph, ToggleButtonMorph, DialMorph*/
|
|||
|
||||
// Global stuff ////////////////////////////////////////////////////////
|
||||
|
||||
modules.blocks = '2018-October-26';
|
||||
modules.blocks = '2018-October-29';
|
||||
|
||||
var SyntaxElementMorph;
|
||||
var BlockMorph;
|
||||
|
@ -596,15 +596,17 @@ SyntaxElementMorph.prototype.getVarNamesDict = function () {
|
|||
);
|
||||
} else if (morph instanceof BlockMorph) {
|
||||
morph.inputs().forEach(function (inp) {
|
||||
if (inp instanceof TemplateSlotMorph) {
|
||||
tempVars.push(inp.contents());
|
||||
} else if (inp instanceof MultiArgMorph) {
|
||||
inp.children.forEach(function (m) {
|
||||
if (m instanceof TemplateSlotMorph) {
|
||||
tempVars.push(m.contents());
|
||||
}
|
||||
});
|
||||
}
|
||||
inp.forAllChildren(function (child){
|
||||
if (child instanceof TemplateSlotMorph) {
|
||||
tempVars.push(child.contents());
|
||||
} else if (child instanceof MultiArgMorph) {
|
||||
child.children.forEach(function (m) {
|
||||
if (m instanceof TemplateSlotMorph) {
|
||||
tempVars.push(m.contents());
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
Ładowanie…
Reference in New Issue