File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -89,23 +89,23 @@ export default function (Blockly) {
8989 } ;
9090
9191 Blockly . Ruby . looks_gotofrontback = function ( block ) {
92- const frontBack = block . getFieldValue ( 'FRONT_BACK' ) || null ;
92+ const frontBack = block . getFieldValue ( 'FRONT_BACK' ) || 'front' ;
9393 return `go_to_layer(:${ frontBack } )\n` ;
9494 } ;
9595
9696 Blockly . Ruby . looks_goforwardbackwardlayers = function ( block ) {
97- const layer = Blockly . Ruby . valueToCode ( block , 'NUM' , Blockly . Ruby . ORDER_NONE ) || '0' ;
98- const forwardBackward = block . getFieldValue ( 'FORWARD_BACKWARD' ) || null ;
97+ const layer = Blockly . Ruby . valueToCode ( block , 'NUM' , Blockly . Ruby . ORDER_NONE ) || 0 ;
98+ const forwardBackward = block . getFieldValue ( 'FORWARD_BACKWARD' ) || 'forward' ;
9999 return `go_layers(${ layer } , :${ forwardBackward } )\n` ;
100100 } ;
101101
102102 Blockly . Ruby . looks_costumenumbername = function ( block ) {
103- const numberName = block . getFieldValue ( 'NUMBER_NAME' ) || null ;
103+ const numberName = block . getFieldValue ( 'NUMBER_NAME' ) || 'number' ;
104104 return [ `costume_${ numberName } ` , Blockly . Ruby . ORDER_ATOMIC ] ;
105105 } ;
106106
107107 Blockly . Ruby . looks_backdropnumbername = function ( block ) {
108- const numberName = block . getFieldValue ( 'NUMBER_NAME' ) || null ;
108+ const numberName = block . getFieldValue ( 'NUMBER_NAME' ) || 'number' ;
109109 return [ `backdrop_${ numberName } ` , Blockly . Ruby . ORDER_ATOMIC ] ;
110110 } ;
111111
You can’t perform that action at this time.
0 commit comments