mirror of
https://github.com/google/blockly.git
synced 2026-01-07 09:00:11 +01:00
Misc compiler warnings. (#3172)
* Fix misc compiler warnings. Use ws.getToolbox() instead of ws.toolbox_
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user