From 98e6020baf1e8d4904bb3c4a751e3cb030e80e34 Mon Sep 17 00:00:00 2001 From: kozbial Date: Fri, 16 Jul 2021 13:06:35 -0700 Subject: [PATCH] Migrate core/interfaces/i_delete_area.js named requires --- core/interfaces/i_delete_area.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/core/interfaces/i_delete_area.js b/core/interfaces/i_delete_area.js index 923c0bd7c..5c5cbd380 100644 --- a/core/interfaces/i_delete_area.js +++ b/core/interfaces/i_delete_area.js @@ -15,15 +15,14 @@ goog.module('Blockly.IDeleteArea'); goog.module.declareLegacyNamespace(); -goog.require('Blockly.IDragTarget'); - -goog.requireType('Blockly.IDraggable'); +const IDraggable = goog.requireType('Blockly.IDraggable'); +const IDragTarget = goog.require('Blockly.IDragTarget'); /** * Interface for a component that can delete a block or bubble that is dropped * on top of it. - * @extends {Blockly.IDragTarget} + * @extends {IDragTarget} * @interface */ const IDeleteArea = function() {}; @@ -33,7 +32,7 @@ const IDeleteArea = function() {}; * this area. * This method should check if the element is deletable and is always called * before onDragEnter/onDragOver/onDragExit. - * @param {!Blockly.IDraggable} element The block or bubble currently being + * @param {!IDraggable} element The block or bubble currently being * dragged. * @param {boolean} couldConnect Whether the element could could connect to * another.