mirror of
https://github.com/google/blockly.git
synced 2026-03-09 14:50:09 +01:00
Handle undefined colour (#3997)
This commit is contained in:
@@ -588,7 +588,7 @@ Blockly.Toolbox.prototype.setColour_ = function(colourValue, childOut,
|
||||
// Decode the colour for any potential message references
|
||||
// (eg. `%{BKY_MATH_HUE}`).
|
||||
var colour = Blockly.utils.replaceMessageReferences(colourValue);
|
||||
if (colour === null || colour === '') {
|
||||
if (colour == null || colour === '') {
|
||||
// No attribute. No colour.
|
||||
childOut.hexColour = '';
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user