mirror of
https://github.com/google/blockly.git
synced 2026-01-04 23:50:12 +01:00
Rename WorkspaceSvg.getFlyout_ (#2357)
This commit is contained in:
@@ -685,7 +685,7 @@ Blockly.WorkspaceSvg.prototype.addFlyout_ = function(tagName) {
|
||||
* @return {Blockly.Flyout} The flyout on this workspace.
|
||||
* @package
|
||||
*/
|
||||
Blockly.WorkspaceSvg.prototype.getFlyout_ = function() {
|
||||
Blockly.WorkspaceSvg.prototype.getFlyout = function() {
|
||||
if (this.flyout_) {
|
||||
return this.flyout_;
|
||||
}
|
||||
@@ -925,8 +925,8 @@ Blockly.WorkspaceSvg.prototype.setVisible = function(isVisible) {
|
||||
|
||||
// Tell the flyout whether its container is visible so it can
|
||||
// tell when to hide itself.
|
||||
if (this.getFlyout_()) {
|
||||
this.getFlyout_().setContainerVisible(isVisible);
|
||||
if (this.getFlyout()) {
|
||||
this.getFlyout().setContainerVisible(isVisible);
|
||||
}
|
||||
|
||||
this.getParentSvg().style.display = isVisible ? 'block' : 'none';
|
||||
|
||||
Reference in New Issue
Block a user