File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed
Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -6,27 +6,6 @@ goog.require('Blockly.Blocks');
66goog . require ( 'Blockly.Colours' ) ;
77goog . 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-
309Blockly . Blocks [ 'control_expandableIf' ] = {
3110 /**
3211 * pm: Block for joining strings together (determined by user)
You can’t perform that action at this time.
0 commit comments