Fix event related missing requires (#4656)

* Fix event related missing requires
This commit is contained in:
Sam El-Husseini
2021-02-25 17:28:11 -05:00
committed by GitHub
parent d42afc7e69
commit ab8a11784d
37 changed files with 116 additions and 71 deletions

View File

@@ -66,7 +66,8 @@ Blockly.VariableModel = function(workspace, name, opt_type, opt_id) {
*/
this.id_ = opt_id || Blockly.utils.genUid();
Blockly.Events.fire(new Blockly.Events.VarCreate(this));
Blockly.Events.fire(new (Blockly.Events.get(Blockly.Events.VAR_CREATE))(
this));
};
/**