Skip to content

Commit 7a39106

Browse files
authored
apparently this variable is reusable. Fix expandable if
1 parent 08c9bd7 commit 7a39106

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

blocks_vertical/live_tests.js

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,6 @@ goog.require('Blockly.Blocks');
66
goog.require('Blockly.Colours');
77
goog.require('Blockly.ScratchBlocks.VerticalExtensions');
88

9-
const mutatorPopulateUtil = function (connection, type, optValue, optValueName) {
10-
if (connection.sourceBlock_.isInsertionMarker_) return;
11-
12-
ScratchBlocks.Events.disable();
13-
const block = this.workspace.newBlock(type);
14-
try {
15-
if (optValue) block.setFieldValue(optValue, optValueName);
16-
block.setShadow(true);
17-
if (!this.isInsertionMarker()) {
18-
block.initSvg();
19-
block.render(false);
20-
}
21-
} finally {
22-
ScratchBlocks.Events.enable();
23-
}
24-
25-
if (ScratchBlocks.Events.isEnabled()) ScratchBlocks.Events.fire(new ScratchBlocks.Events.BlockCreate(block));
26-
if (block.outputConnection) block.outputConnection.connect(connection);
27-
else block.previousConnection.connect(connection);
28-
}
29-
309
Blockly.Blocks['control_expandableIf'] = {
3110
/**
3211
* pm: Block for joining strings together (determined by user)

0 commit comments

Comments
 (0)