mirror of
https://github.com/google/blockly.git
synced 2026-01-07 09:00:11 +01:00
committed by
Sam El-Husseini
parent
f3f3329355
commit
d6cb6b9832
11
core/msg.js
11
core/msg.js
@@ -30,9 +30,16 @@
|
||||
*/
|
||||
goog.provide('Blockly.Msg');
|
||||
|
||||
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.
|
||||
* @export
|
||||
*/
|
||||
Blockly.Msg = {};
|
||||
if (!Blockly.utils.global['Blockly']) {
|
||||
Blockly.utils.global['Blockly'] = {};
|
||||
}
|
||||
if (!Blockly.utils.global['Blockly']['Msg']) {
|
||||
Blockly.utils.global['Blockly']['Msg'] = Blockly.Msg;
|
||||
}
|
||||
|
||||
@@ -78,7 +78,6 @@ COMPILATION_COMMAND="java -jar $COMPILER --js='$BLOCKLY_ROOT/tests/compile/main.
|
||||
--js='$BLOCKLY_ROOT/blocks/**.js' \
|
||||
--js='$BLOCKLY_ROOT/generators/**.js' \
|
||||
--js='$BLOCKLY_ROOT/msg/js/**.js' \
|
||||
--js='$BLOCKLY_ROOT/closure/goog/base.js' \
|
||||
--generate_exports \
|
||||
--externs $BLOCKLY_ROOT/externs/svg-externs.js \
|
||||
--compilation_level ADVANCED_OPTIMIZATIONS \
|
||||
|
||||
Reference in New Issue
Block a user