mirror of
https://github.com/google/blockly.git
synced 2026-01-07 09:00:11 +01:00
Add requireType calls for Blockly.WorkspaceComment and Blockly.WorkspaceCommentSvg
This commit is contained in:
@@ -36,6 +36,7 @@ goog.require('Blockly.WidgetDiv');
|
||||
|
||||
goog.requireType('Blockly.BlocklyOptions');
|
||||
goog.requireType('Blockly.BlockSvg');
|
||||
goog.requireType('Blockly.WorkspaceCommentSvg');
|
||||
|
||||
|
||||
/**
|
||||
@@ -215,7 +216,9 @@ Blockly.extractObjectFromEvent_ = function(workspace, e) {
|
||||
break;
|
||||
case Blockly.Events.COMMENT_CREATE:
|
||||
case Blockly.Events.COMMENT_MOVE:
|
||||
object = workspace.getCommentById(e.commentId);
|
||||
object = (
|
||||
/** @type {?Blockly.WorkspaceCommentSvg} */
|
||||
(workspace.getCommentById(e.commentId)));
|
||||
break;
|
||||
}
|
||||
return object;
|
||||
|
||||
Reference in New Issue
Block a user