Fix a dozen compiler warnings.

This commit is contained in:
Neil Fraser
2019-05-17 16:23:18 -07:00
committed by Neil Fraser
parent acd96aa2c5
commit 5cf52c566a
11 changed files with 64 additions and 20 deletions

View File

@@ -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());
}