mirror of
https://github.com/google/blockly.git
synced 2026-01-08 17:40:09 +01:00
fix!(blocks): Rename Blockly.Blocks.* modules to Blockly.blocks.* (#5696)
Use Blockly.blocks.* for blocks modules, leaving the Blockly.Blocks name for the block dictionary object. This resolves a problem with advanced compilation of Blockly Games, where, in the compressed output, (the minified name of) Blockly.Blocks gets overwritten, with the dictionary object defined in core/blocks.js being replaced by an empty namespace object created by the provides of Blockly.Blocks.* in blocks/*.js. Without this fix, some block definitions end up being created in the dictionary and some on the namespace object—with chaos predictably ensuing.
This commit is contained in:
committed by
GitHub
parent
eca5ee26d7
commit
beefe361a3
@@ -9,7 +9,7 @@
|
||||
*/
|
||||
'use strict';
|
||||
|
||||
goog.provide('Blockly.Blocks.math'); // Deprecated
|
||||
goog.provide('Blockly.blocks.math');
|
||||
goog.provide('Blockly.Constants.Math');
|
||||
|
||||
goog.require('Blockly');
|
||||
|
||||
Reference in New Issue
Block a user