We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d32896b commit 90be9f6Copy full SHA for 90be9f6
src/compiler/irgen.js
@@ -1737,7 +1737,7 @@ class ScriptTreeGenerator {
1737
return {
1738
kind: 'procedures.return',
1739
return: this.descendInputOfBlock(block, 'return'),
1740
- isDefineClicked: topBlock ? topBlock.opcode === "procedures_return" || topBlock.opcode.startsWith("procedures_definition") : false,
+ isDefineClicked: topBlock && this.thread.topBlock === this.script.topBlockId && (topBlock.opcode === "procedures_return" || topBlock.opcode.startsWith("procedures_definition")),
1741
compilerInfo: {
1742
jwArrayUnmodified: true
1743
}
0 commit comments