Misc compiler warnings. (#3172)

* Fix misc compiler warnings. Use ws.getToolbox() instead of ws.toolbox_
This commit is contained in:
Sam El-Husseini
2019-10-07 11:06:56 -07:00
committed by GitHub
parent 608ce7b93c
commit 2ac4149d98
18 changed files with 62 additions and 59 deletions

View File

@@ -339,10 +339,11 @@ Blockly.hideChaff = function(opt_allowToolbox) {
workspace.trashcan.flyout_) {
workspace.trashcan.flyout_.hide();
}
if (workspace.toolbox_ &&
workspace.toolbox_.flyout_ &&
workspace.toolbox_.flyout_.autoClose) {
workspace.toolbox_.clearSelection();
var toolbox = workspace.getToolbox();
if (toolbox &&
toolbox.flyout_ &&
toolbox.flyout_.autoClose) {
toolbox.clearSelection();
}
}
};