From 9806fc13f97819ba76ad077b8d0e5f2fc63dd0e5 Mon Sep 17 00:00:00 2001 From: kozbial Date: Fri, 16 Jul 2021 13:32:10 -0700 Subject: [PATCH] Migrate core/interfaces/i_draggable.js to goog.module --- core/interfaces/i_draggable.js | 7 +++++-- tests/deps.js | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/core/interfaces/i_draggable.js b/core/interfaces/i_draggable.js index f140555a1..cb77f3dce 100644 --- a/core/interfaces/i_draggable.js +++ b/core/interfaces/i_draggable.js @@ -11,7 +11,8 @@ 'use strict'; -goog.provide('Blockly.IDraggable'); +goog.module('Blockly.IDraggable'); +goog.module.declareLegacyNamespace(); goog.require('Blockly.IDeletable'); @@ -21,4 +22,6 @@ goog.require('Blockly.IDeletable'); * @extends {Blockly.IDeletable} * @interface */ -Blockly.IDraggable = function() {}; +const IDraggable = function() {}; + +exports = IDraggable; diff --git a/tests/deps.js b/tests/deps.js index 234dbe062..5f5f93d89 100644 --- a/tests/deps.js +++ b/tests/deps.js @@ -85,7 +85,7 @@ goog.addDependency('../../core/interfaces/i_copyable.js', ['Blockly.ICopyable'], goog.addDependency('../../core/interfaces/i_deletable.js', ['Blockly.IDeletable'], [], {'lang': 'es6', 'module': 'goog'}); goog.addDependency('../../core/interfaces/i_delete_area.js', ['Blockly.IDeleteArea'], ['Blockly.IDragTarget'], {'lang': 'es6', 'module': 'goog'}); goog.addDependency('../../core/interfaces/i_drag_target.js', ['Blockly.IDragTarget'], ['Blockly.IComponent']); -goog.addDependency('../../core/interfaces/i_draggable.js', ['Blockly.IDraggable'], ['Blockly.IDeletable']); +goog.addDependency('../../core/interfaces/i_draggable.js', ['Blockly.IDraggable'], ['Blockly.IDeletable'], {'lang': 'es6', 'module': 'goog'}); goog.addDependency('../../core/interfaces/i_flyout.js', ['Blockly.IFlyout'], []); goog.addDependency('../../core/interfaces/i_metrics_manager.js', ['Blockly.IMetricsManager'], []); goog.addDependency('../../core/interfaces/i_movable.js', ['Blockly.IMovable'], []);