Permit single field disabling (#4932)

* Fixed lint error (moved && to end of line and adjusted line breaks accordingly)
This commit is contained in:
jschanker
2021-06-20 01:46:18 -04:00
parent 1aa1186fc8
commit d630d767e2

View File

@@ -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');
};
/**