diff --git a/core/interfaces/i_autohideable.js b/core/interfaces/i_autohideable.js index ff976c549..7b1613405 100644 --- a/core/interfaces/i_autohideable.js +++ b/core/interfaces/i_autohideable.js @@ -12,7 +12,8 @@ 'use strict'; -goog.provide('Blockly.IAutoHideable'); +goog.module('Blockly.IAutoHideable'); +goog.module.declareLegacyNamespace(); goog.require('Blockly.IComponent'); @@ -22,11 +23,13 @@ goog.require('Blockly.IComponent'); * @extends {Blockly.IComponent} * @interface */ -Blockly.IAutoHideable = function() {}; +const IAutoHideable = function() {}; /** * Hides the component. Called in Blockly.hideChaff. * @param {boolean} onlyClosePopups Whether only popups should be closed. * Flyouts should not be closed if this is true. */ -Blockly.IAutoHideable.prototype.autoHide; +IAutoHideable.prototype.autoHide; + +exports = IAutoHideable; diff --git a/tests/deps.js b/tests/deps.js index fe97eefd7..c3788886c 100644 --- a/tests/deps.js +++ b/tests/deps.js @@ -76,7 +76,7 @@ goog.addDependency('../../core/insertion_marker_manager.js', ['Blockly.Insertion goog.addDependency('../../core/interfaces/i_ast_node_location.js', ['Blockly.IASTNodeLocation'], [], {'lang': 'es6', 'module': 'goog'}); goog.addDependency('../../core/interfaces/i_ast_node_location_svg.js', ['Blockly.IASTNodeLocationSvg'], ['Blockly.IASTNodeLocation'], {'lang': 'es6', 'module': 'goog'}); goog.addDependency('../../core/interfaces/i_ast_node_location_with_block.js', ['Blockly.IASTNodeLocationWithBlock'], ['Blockly.IASTNodeLocation'], {'lang': 'es6', 'module': 'goog'}); -goog.addDependency('../../core/interfaces/i_autohideable.js', ['Blockly.IAutoHideable'], ['Blockly.IComponent']); +goog.addDependency('../../core/interfaces/i_autohideable.js', ['Blockly.IAutoHideable'], ['Blockly.IComponent'], {'lang': 'es6', 'module': 'goog'}); goog.addDependency('../../core/interfaces/i_block_dragger.js', ['Blockly.IBlockDragger'], [], {'lang': 'es6', 'module': 'goog'}); goog.addDependency('../../core/interfaces/i_bounded_element.js', ['Blockly.IBoundedElement'], [], {'lang': 'es6', 'module': 'goog'}); goog.addDependency('../../core/interfaces/i_bubble.js', ['Blockly.IBubble'], ['Blockly.IContextMenu', 'Blockly.IDraggable'], {'lang': 'es6', 'module': 'goog'});