Files
blockly/core/msg.js
Christopher Allen 7a2e23876e Migrate core/msg.js to goog.module syntax (#5448)
* Migrate core/msg.js to goog.module
* Migrate core/msg.js named requires
2021-09-10 18:10:23 +01:00

33 lines
710 B
JavaScript

/**
* @license
* Copyright 2013 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @fileoverview Empty name space for the Message singleton.
* @author scr@google.com (Sheridan Rawlins)
*/
'use strict';
/**
* Name space for the Msg singleton.
* Msg gets populated in the message files.
*/
goog.module('Blockly.Msg');
goog.module.declareLegacyNamespace();
const global = goog.require('Blockly.utils.global');
/**
* Exported so that if Blockly is compiled with ADVANCED_COMPILATION,
* the Blockly.Msg object exists for message files included in script tags.
*/
if (!global['Blockly']) {
global['Blockly'] = {};
}
if (!global['Blockly']['Msg']) {
global['Blockly']['Msg'] = exports;
}