mirror of
https://github.com/google/blockly.git
synced 2026-01-07 00:50:27 +01:00
fix: make eventUtils throw if event type not registered (#6381)
* chore: update lint rules * fix: have eventUtils.get throw if event isn't found * chore: remove nonnull assertion from eventUtils.get and format
This commit is contained in:
committed by
GitHub
parent
980fe138e7
commit
60bc01acc8
@@ -562,8 +562,8 @@ export class MarkerSvg {
|
||||
*/
|
||||
private fireMarkerEvent_(oldNode: ASTNode, curNode: ASTNode) {
|
||||
const curBlock = curNode.getSourceBlock();
|
||||
const event = new (eventUtils.get(eventUtils.MARKER_MOVE))!
|
||||
(curBlock, this.isCursor(), oldNode, curNode);
|
||||
const event = new (eventUtils.get(eventUtils.MARKER_MOVE))(
|
||||
curBlock, this.isCursor(), oldNode, curNode);
|
||||
eventUtils.fire(event);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user