Skip to content

Commit 073a5da

Browse files
author
yuri-kiss
committed
Move the extension to vertical extensions
1 parent 652ecfa commit 073a5da

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

blocks_vertical/vertical_extensions.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff 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

289297
Blockly.ScratchBlocks.VerticalExtensions.registerAll();

core/extensions.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,4 @@ Blockly.Extensions.extensionParentTooltip_ = function() {
447447
}.bind(this));
448448
};
449449
Blockly.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_);

0 commit comments

Comments
 (0)