From 60e6b8c6df381ca2c34cfb8afe1cea550f6786e1 Mon Sep 17 00:00:00 2001 From: kozbial Date: Thu, 19 Sep 2019 10:37:40 -0700 Subject: [PATCH] style and doc updates. --- core/renderers/common/renderer.js | 5 +++-- core/workspace.js | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/core/renderers/common/renderer.js b/core/renderers/common/renderer.js index db3856c62..b232c1f01 100644 --- a/core/renderers/common/renderer.js +++ b/core/renderers/common/renderer.js @@ -100,7 +100,7 @@ Blockly.blockRendering.Renderer.prototype.makeDebugger_ = function() { }; /** - * Create a new instance of the renderer's cursor drawer + * Create a new instance of the renderer's cursor drawer. * @param {!Blockly.WorkspaceSvg} workspace The workspace the cursor belongs to. * @param {boolean=} opt_marker True if the cursor is a marker. A marker is used * to save a location and is an immovable cursor. False or undefined if the @@ -108,7 +108,8 @@ Blockly.blockRendering.Renderer.prototype.makeDebugger_ = function() { * @return {!Blockly.CursorSvg} The cursor drawer. * @package */ -Blockly.blockRendering.Renderer.prototype.makeCursorDrawer = function(workspace, opt_marker) { +Blockly.blockRendering.Renderer.prototype.makeCursorDrawer = function( + workspace, opt_marker) { return new Blockly.CursorSvg(workspace, opt_marker); }; diff --git a/core/workspace.js b/core/workspace.js index a858a11d7..9810de537 100644 --- a/core/workspace.js +++ b/core/workspace.js @@ -119,14 +119,14 @@ Blockly.Workspace = function(opt_options) { /** * The cursor used to navigate around the AST for keyboard navigation. - * @type {Blockly.Cursor} + * @type {!Blockly.Cursor} * @protected */ this.cursor_ = new Blockly.Cursor(); /** * The marker used to mark a location for keyboard navigation. - * @type {Blockly.MarkerCursor} + * @type {!Blockly.MarkerCursor} * @protected */ this.marker_ = new Blockly.MarkerCursor();