Fix warnings related to number of arguments passed. (#3270)

This commit is contained in:
Sam El-Husseini
2019-10-17 11:47:30 -05:00
committed by GitHub
parent 526528354f
commit 664cc3d6cd
8 changed files with 16 additions and 13 deletions

View File

@@ -269,7 +269,8 @@ Blockly.onKeyDown = function(e) {
if (deleteBlock && !Blockly.selected.workspace.isFlyout) {
Blockly.Events.setGroup(true);
Blockly.hideChaff();
Blockly.selected.dispose(/* heal */ true, true);
var selected = /** @type {!Blockly.BlockSvg} */ (Blockly.selected);
selected.dispose(/* heal */ true, true);
Blockly.Events.setGroup(false);
}
};