File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -232,6 +232,10 @@ Blockly.ScratchBlocks.VerticalExtensions.SCRATCH_EXTENSION = function() {
232232 this . isScratchExtension = true ;
233233} ;
234234
235+ Blockly . ScratchBlocks . VerticalExtensions . SHADOW_ARGUMENT_REPORTER = function ( ) {
236+ this . shadow_argument_reporter = true ;
237+ } ;
238+
235239/**
236240 * Register all extensions for scratch-blocks.
237241 * @package
@@ -284,6 +288,10 @@ Blockly.ScratchBlocks.VerticalExtensions.registerAll = function() {
284288 // Misleading name. Given to blocks that have an extension icon.
285289 Blockly . Extensions . register ( 'scratch_extension' ,
286290 Blockly . ScratchBlocks . VerticalExtensions . SCRATCH_EXTENSION ) ;
291+
292+ // Blocks that are regenerative shadow reporters
293+ Blockly . Extensions . register ( 'shadow_argument_reporter' ,
294+ Blockly . ScratchBlocks . VerticalExtensions . SHADOW_ARGUMENT_REPORTER ) ;
287295} ;
288296
289297Blockly . ScratchBlocks . VerticalExtensions . registerAll ( ) ;
Original file line number Diff line number Diff line change @@ -447,7 +447,4 @@ Blockly.Extensions.extensionParentTooltip_ = function() {
447447 } . bind ( this ) ) ;
448448} ;
449449Blockly . Extensions . register ( 'parent_tooltip_when_inline' ,
450- Blockly . Extensions . extensionParentTooltip_ ) ;
451- Blockly . Extensions . register ( 'shadow_argument_reporter' , function ( ) {
452- this . shadow_argument_reporter = true ;
453- } ) ;
450+ Blockly . Extensions . extensionParentTooltip_ ) ;
You can’t perform that action at this time.
0 commit comments