mirror of
https://github.com/google/blockly.git
synced 2026-01-11 10:57:07 +01:00
chore: Remove declareLegacyNamespace() from theme files
This commit is contained in:
@@ -76,6 +76,7 @@ const ShortcutRegistry = goog.require('Blockly.ShortcutRegistry');
|
||||
const Size = goog.require('Blockly.utils.Size');
|
||||
const TabNavigateCursor = goog.require('Blockly.TabNavigateCursor');
|
||||
const Theme = goog.require('Blockly.Theme');
|
||||
const Themes = goog.require('Blockly.Themes');
|
||||
const ThemeManager = goog.require('Blockly.ThemeManager');
|
||||
const Toolbox = goog.require('Blockly.Toolbox');
|
||||
const ToolboxCategory = goog.require('Blockly.ToolboxCategory');
|
||||
@@ -562,6 +563,7 @@ exports.ShortcutItems = ShortcutItems;
|
||||
exports.ShortcutRegistry = ShortcutRegistry;
|
||||
exports.TabNavigateCursor = TabNavigateCursor;
|
||||
exports.Theme = Theme;
|
||||
exports.Themes = Themes;
|
||||
exports.ThemeManager = ThemeManager;
|
||||
exports.Toolbox = Toolbox;
|
||||
exports.ToolboxCategory = ToolboxCategory;
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
'use strict';
|
||||
|
||||
goog.module('Blockly.Themes.Classic');
|
||||
goog.module.declareLegacyNamespace();
|
||||
|
||||
const Theme = goog.require('Blockly.Theme');
|
||||
|
||||
|
||||
19
core/theme/themes.js
Normal file
19
core/theme/themes.js
Normal file
@@ -0,0 +1,19 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2021 Google LLC
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileoverview Namespace for themes.
|
||||
*/
|
||||
'use strict';
|
||||
|
||||
goog.module('Blockly.Themes');
|
||||
|
||||
const Classic = goog.require('Blockly.Themes.Classic');
|
||||
const Zelos = goog.require('Blockly.Themes.Zelos');
|
||||
|
||||
|
||||
exports.Classic = Classic;
|
||||
exports.Zelos = Zelos;
|
||||
@@ -10,7 +10,6 @@
|
||||
'use strict';
|
||||
|
||||
goog.module('Blockly.Themes.Zelos');
|
||||
goog.module.declareLegacyNamespace();
|
||||
|
||||
const Theme = goog.require('Blockly.Theme');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user