From d23dc0ae557ccac2d262e22406e4b2cf2e67334a Mon Sep 17 00:00:00 2001 From: Neil Fraser Date: Fri, 28 Jun 2019 16:22:03 -0700 Subject: [PATCH] Minor cleanup from #2581 --- core/block_svg.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/block_svg.js b/core/block_svg.js index f843a6828..7b56be463 100644 --- a/core/block_svg.js +++ b/core/block_svg.js @@ -636,12 +636,11 @@ Blockly.BlockSvg.prototype.showHelp_ = function() { /** * Generate the context menu for this block. * @protected - * @returns {Array} Context menu options + * @returns {Array.} Context menu options */ Blockly.BlockSvg.prototype.generateContextMenu = function() { - if (this.workspace.options.readOnly || !this.contextMenu) { - return; + return null; } // Save the current block in a variable for use in closures. var block = this;