Remove require destructuring (#5294)

This commit is contained in:
Monica Kozbial
2021-08-03 15:07:14 -07:00
committed by GitHub
parent 724cdd3bd2
commit bec82da358
31 changed files with 242 additions and 237 deletions

View File

@@ -21,7 +21,7 @@ const DragTarget = goog.require('Blockly.DragTarget');
const IDeleteArea = goog.require('Blockly.IDeleteArea');
/* eslint-disable-next-line no-unused-vars */
const IDraggable = goog.requireType('Blockly.IDraggable');
const {inherits} = goog.require('Blockly.utils.object');
const object = goog.require('Blockly.utils.object');
/**
* Abstract class for a component that can delete a block or bubble that is
@@ -42,7 +42,7 @@ const DeleteArea = function() {
*/
this.wouldDelete_ = false;
};
inherits(DeleteArea, DragTarget);
object.inherits(DeleteArea, DragTarget);
/**
* Returns whether the provided block or bubble would be deleted if dropped on