mirror of
https://github.com/google/blockly.git
synced 2026-01-11 19:07:08 +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