Skip to content

Commit

Permalink
Migrate core/blocks.js to goog.module
Browse files Browse the repository at this point in the history
  • Loading branch information
kozbial committed Jul 15, 2021
1 parent de2cff8 commit e9d53f3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions core/blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@
* A mapping of block type names to block prototype objects.
* @name Blockly.Blocks
*/
goog.provide('Blockly.Blocks');
goog.module('Blockly.Blocks');
goog.module.declareLegacyNamespace();

/**
* A mapping of block type names to block prototype objects.
* @type {!Object<string,Object>}
*/
Blockly.Blocks = Object.create(null);
const Blocks = Object.create(null);

exports = Blocks;
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.

0 comments on commit e9d53f3

Please sign in to comment.