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

@@ -229,7 +229,7 @@ Blockly.BubbleDragger.prototype.endBubbleDrag = function(
*/
Blockly.BubbleDragger.prototype.fireMoveEvent_ = function() {
if (this.draggingBubble_.isComment) {
var event = new Blockly.Events.CommentMove(
var event = new (Blockly.Events.get(Blockly.Events.COMMENT_MOVE))(
/** @type {!Blockly.WorkspaceCommentSvg} */ (this.draggingBubble_));
event.setOldCoordinate(this.startXY_);
event.recordNew();