From d630d767e283da714392f12bf739a289c2962271 Mon Sep 17 00:00:00 2001 From: jschanker Date: Sun, 20 Jun 2021 01:46:18 -0400 Subject: [PATCH] Permit single field disabling (#4932) * Fixed lint error (moved && to end of line and adjusted line breaks accordingly) --- core/field.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/field.js b/core/field.js index 5547d73bf..4b18ca08e 100644 --- a/core/field.js +++ b/core/field.js @@ -482,8 +482,9 @@ Blockly.Field.prototype.isEnabled = function() { * @return {boolean} Whether this field is clickable. */ Blockly.Field.prototype.isClickable = function() { - return this.enabled_ && !!this.sourceBlock_ && this.sourceBlock_.isEditable() - && !!this.showEditor_ && (typeof this.showEditor_ === 'function'); + return this.enabled_ && !!this.sourceBlock_ && + this.sourceBlock_.isEditable() && !!this.showEditor_ && + (typeof this.showEditor_ === 'function'); }; /**