Minor cleanup from #2581

This commit is contained in:
Neil Fraser
2019-06-28 16:22:03 -07:00
committed by Neil Fraser
parent 712576a5b1
commit d23dc0ae55

View File

@@ -636,12 +636,11 @@ Blockly.BlockSvg.prototype.showHelp_ = function() {
/**
* Generate the context menu for this block.
* @protected
* @returns {Array} Context menu options
* @returns {Array.<!Object>} 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;