mirror of
https://github.com/google/blockly.git
synced 2026-03-14 17:20:11 +01:00
Permit single field disabling (#4932)
* Fixed lint error (moved && to end of line and adjusted line breaks accordingly)
This commit is contained in:
@@ -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');
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user