@@ -30,7 +30,7 @@ const {Block} = goog.requireType('Blockly.Block');
3030const BlockDefinition = Object ;
3131const { config} = goog . require ( 'Blockly.config' ) ;
3232const { Msg} = goog . require ( 'Blockly.Msg' ) ;
33- const { MutatorIcon } = goog . require ( 'Blockly.icons.MutatorIcon ' ) ;
33+ const { Mutator : Mutator } = goog . require ( 'Blockly.Mutator ' ) ;
3434const { Names} = goog . require ( 'Blockly.Names' ) ;
3535/* eslint-disable-next-line no-unused-vars */
3636const { VariableModel} = goog . requireType ( 'Blockly.VariableModel' ) ;
@@ -388,7 +388,7 @@ const PROCEDURE_DEF_COMMON = {
388388 displayRenamedVar_ : function ( oldName , newName ) {
389389 this . updateParams_ ( ) ;
390390 // Update the mutator's variables if the mutator is open.
391- const mutator = this . getIcon ( MutatorIcon . TYPE ) ;
391+ const mutator = this . getIcon ( Mutator . TYPE ) ;
392392 if ( mutator && mutator . bubbleIsVisible ( ) ) {
393393 const blocks = mutator . getWorkspace ( ) . getAllBlocks ( false ) ;
394394 for ( let i = 0 , block ; ( block = blocks [ i ] ) ; i ++ ) {
@@ -462,7 +462,7 @@ blocks['procedures_defnoreturn'] = {
462462 . appendField ( Msg [ 'PROCEDURES_DEFNORETURN_TITLE' ] )
463463 . appendField ( nameField , 'NAME' )
464464 . appendField ( '' , 'PARAMS' ) ;
465- this . setMutator ( new MutatorIcon ( [ 'procedures_mutatorarg' ] , this ) ) ;
465+ this . setMutator ( new Mutator ( [ 'procedures_mutatorarg' ] , this ) ) ;
466466 if ( ( this . workspace . options . comments ||
467467 ( this . workspace . options . parentWorkspace &&
468468 this . workspace . options . parentWorkspace . options . comments ) ) &&
@@ -512,7 +512,7 @@ blocks['procedures_defreturn'] = {
512512 this . appendValueInput ( 'RETURN' )
513513 . setAlign ( Align . RIGHT )
514514 . appendField ( Msg [ 'PROCEDURES_DEFRETURN_RETURN' ] ) ;
515- this . setMutator ( new MutatorIcon ( [ 'procedures_mutatorarg' ] , this ) ) ;
515+ this . setMutator ( new Mutator ( [ 'procedures_mutatorarg' ] , this ) ) ;
516516 if ( ( this . workspace . options . comments ||
517517 ( this . workspace . options . parentWorkspace &&
518518 this . workspace . options . parentWorkspace . options . comments ) ) &&
@@ -732,7 +732,7 @@ const PROCEDURE_CALL_COMMON = {
732732 // which might reappear if a param is reattached in the mutator.
733733 const defBlock =
734734 Procedures . getDefinition ( this . getProcedureCall ( ) , this . workspace ) ;
735- const mutatorIcon = defBlock && defBlock . getIcon ( MutatorIcon . TYPE ) ;
735+ const mutatorIcon = defBlock && defBlock . getIcon ( Mutator . TYPE ) ;
736736 const mutatorOpen =
737737 mutatorIcon && mutatorIcon . bubbleIsVisible ( ) ;
738738 if ( ! mutatorOpen ) {
0 commit comments