diff --git a/blocks_vertical/procedures.js b/blocks_vertical/procedures.js index 4ae182bc9b..2d456fd186 100644 --- a/blocks_vertical/procedures.js +++ b/blocks_vertical/procedures.js @@ -916,7 +916,7 @@ Blockly.ScratchBlocks.ProcedureUtils.argumentReporterDomToMutation = function(do this.color = JSON.parse(dom.getAttribute('color')) this.updateDisplay_() } catch (err) { - console.log('unkown old argument reporter') + console.warn('unknown old argument reporter') } }; diff --git a/core/blockly.js b/core/blockly.js index dab8993dcc..fd39e8c8b4 100644 --- a/core/blockly.js +++ b/core/blockly.js @@ -151,7 +151,6 @@ goog.color.hsvaToHex = function(hue, saturation, value, alpha) { var hex = goog.color.hsvToHex(hue, saturation, value) var alpha = goog.constrain(Math.floor(alpha * 255), 0, 255).toString(16) if (alpha.length === 1) alpha = '0' + alpha - console.log('set', alpha) return hex + alpha } @@ -162,11 +161,9 @@ goog.color.hsvaToHex = function(hue, saturation, value, alpha) { */ goog.color.hexToHsva = function(decimal) { var alpha = (() => { - console.log(decimal, decimal.slice(7, 9), parseInt(decimal.slice(7, 9), 16)) if (typeof decimal === 'string') return parseInt(decimal.slice(7, 9), 16) return decimal & 0xFF })() / 255 - console.log('get', alpha) var [hue, saturation, value] = goog.color.hexToHsv(decimal.slice(0, 7)) return [hue,saturation,value,alpha];