mirror of
https://github.com/google/blockly.git
synced 2026-01-07 17:10:11 +01:00
Fix a dozen compiler warnings.
This commit is contained in:
@@ -182,7 +182,7 @@ Blockly.Generator.prototype.blockToCode = function(block, opt_thisOnly) {
|
||||
if (!block) {
|
||||
return '';
|
||||
}
|
||||
if (block.disabled) {
|
||||
if (!block.isEnabled()) {
|
||||
// Skip past this block if it is disabled.
|
||||
return opt_thisOnly ? '' : this.blockToCode(block.getNextBlock());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user