Skip to content

Commit

Permalink
chore: Remove declareLegacyNamespace() from toolbox/ files
Browse files Browse the repository at this point in the history
  • Loading branch information
kozbial authored and moniika committed Sep 23, 2021
1 parent fd917f4 commit 8bd2e8c
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 7 deletions.
10 changes: 10 additions & 0 deletions core/blockly.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ goog.module('Blockly');
goog.module.declareLegacyNamespace();

const Blocks = goog.require('Blockly.Blocks');
const CollapsibleToolboxCategory = goog.require('Blockly.CollapsibleToolboxCategory');
const Toolbox = goog.require('Blockly.Toolbox');
const ToolboxCategory = goog.require('Blockly.ToolboxCategory');
const ToolboxItem = goog.require('Blockly.ToolboxItem');
const ToolboxSeparator = goog.require('Blockly.ToolboxSeparator');
/* eslint-disable-next-line no-unused-vars */
const ICopyable = goog.requireType('Blockly.ICopyable');
const Marker = goog.require('Blockly.Marker');
Expand Down Expand Up @@ -425,6 +430,11 @@ exports.Block = Block;
exports.BlockDragger = BlockDragger;
exports.BlockDragSurfaceSvg = BlockDragSurfaceSvg;
exports.BlockSvg = BlockSvg;
exports.CollapsibleToolboxCategory = CollapsibleToolboxCategory;
exports.Cursor = Cursor;
exports.Marker = Marker;
exports.TabNavigateCursor = TabNavigateCursor;
exports.Toolbox = Toolbox;
exports.ToolboxCategory = ToolboxCategory;
exports.ToolboxItem = ToolboxItem;
exports.ToolboxSeparator = ToolboxSeparator;
1 change: 0 additions & 1 deletion core/toolbox/category.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
'use strict';

goog.module('Blockly.ToolboxCategory');
goog.module.declareLegacyNamespace();

const Css = goog.require('Blockly.Css');
/* eslint-disable-next-line no-unused-vars */
Expand Down
1 change: 0 additions & 1 deletion core/toolbox/collapsible_category.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
'use strict';

goog.module('Blockly.CollapsibleToolboxCategory');
goog.module.declareLegacyNamespace();

/* eslint-disable-next-line no-unused-vars */
const ICollapsibleToolboxItem = goog.requireType('Blockly.ICollapsibleToolboxItem');
Expand Down
1 change: 0 additions & 1 deletion core/toolbox/separator.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
'use strict';

goog.module('Blockly.ToolboxSeparator');
goog.module.declareLegacyNamespace();

const Css = goog.require('Blockly.Css');
/* eslint-disable-next-line no-unused-vars */
Expand Down
1 change: 0 additions & 1 deletion core/toolbox/toolbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
'use strict';

goog.module('Blockly.Toolbox');
goog.module.declareLegacyNamespace();

/* eslint-disable-next-line no-unused-vars */
const BlocklyOptions = goog.requireType('Blockly.BlocklyOptions');
Expand Down
1 change: 0 additions & 1 deletion core/toolbox/toolbox_item.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
'use strict';

goog.module('Blockly.ToolboxItem');
goog.module.declareLegacyNamespace();

/* eslint-disable-next-line no-unused-vars */
const ICollapsibleToolboxItem = goog.requireType('Blockly.ICollapsibleToolboxItem');
Expand Down
2 changes: 1 addition & 1 deletion tests/deps.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/deps.mocha.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8bd2e8c

Please sign in to comment.