mirror of
https://github.com/google/blockly.git
synced 2026-01-10 10:27:08 +01:00
Fix event related missing requires (#4656)
* Fix event related missing requires
This commit is contained in:
@@ -203,7 +203,8 @@ Blockly.ContextMenu.callbackFactory = function(block, xml) {
|
||||
Blockly.Events.enable();
|
||||
}
|
||||
if (Blockly.Events.isEnabled() && !newBlock.isShadow()) {
|
||||
Blockly.Events.fire(new Blockly.Events.BlockCreate(newBlock));
|
||||
Blockly.Events.fire(
|
||||
new (Blockly.Events.get(Blockly.Events.BLOCK_CREATE))(newBlock));
|
||||
}
|
||||
newBlock.select();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user