mirror of
https://github.com/google/blockly.git
synced 2026-01-09 18:10:08 +01:00
Making all blocks use the MSG colour values. (#1749)
* Making all blocks use the MSG colour values. * Deprecating Blockly.Constants.Lists.HUE and similar constants. * Removing deprecated Blockly.Blocks.lists.HUE constants. * Allowing message references in the Block.setColour() parameter. * Adding checking of older constants, ensuring they are not overwritten.
This commit is contained in:
committed by
GitHub
parent
d3a9d96841
commit
e9d8e00a55
@@ -45,6 +45,8 @@ goog.require('goog.userAgent');
|
||||
* @return {!Blockly.Workspace} Newly created main workspace.
|
||||
*/
|
||||
Blockly.inject = function(container, opt_options) {
|
||||
Blockly.checkBlockColourConstants();
|
||||
|
||||
if (goog.isString(container)) {
|
||||
container = document.getElementById(container) ||
|
||||
document.querySelector(container);
|
||||
|
||||
Reference in New Issue
Block a user