clang-format core/events/events_marker_move.js

This commit is contained in:
Aaron Dodson
2021-08-02 11:15:11 -07:00
parent b9af6677e8
commit 3f83a8f600

View File

@@ -37,12 +37,10 @@ const registry = goog.require('Blockly.registry');
* @extends {UiBase}
* @constructor
*/
const MarkerMove = function(opt_block, isCursor, opt_oldNode,
opt_newNode) {
const MarkerMove = function(opt_block, isCursor, opt_oldNode, opt_newNode) {
let workspaceId = opt_block ? opt_block.workspace.id : undefined;
if (opt_newNode && opt_newNode.getType() == ASTNode.types.WORKSPACE) {
workspaceId =
(/** @type {!Workspace} */ (opt_newNode.getLocation())).id;
workspaceId = (/** @type {!Workspace} */ (opt_newNode.getLocation())).id;
}
MarkerMove.superClass_.constructor.call(this, workspaceId);
@@ -103,7 +101,6 @@ MarkerMove.prototype.fromJson = function(json) {
this.newNode = json['newNode'];
};
registry.register(registry.Type.EVENT,
Events.MARKER_MOVE, MarkerMove);
registry.register(registry.Type.EVENT, Events.MARKER_MOVE, MarkerMove);
exports = MarkerMove;