mirror of
https://github.com/google/blockly.git
synced 2026-01-13 11:57:10 +01:00
Merge pull request #2305 from jollytoad/bugfix/2302-fix-hat
Fix hat logic
This commit is contained in:
@@ -567,7 +567,7 @@ Blockly.BlockSvg.prototype.renderDraw_ = function(iconWidth, inputRows) {
|
||||
this.squareTopLeftCorner_ = true;
|
||||
this.squareBottomLeftCorner_ = true;
|
||||
} else {
|
||||
var renderCap = typeof this.hat !== undefined ? this.hat === 'cap' :
|
||||
var renderCap = this.hat ? this.hat === 'cap' :
|
||||
Blockly.BlockSvg.START_HAT;
|
||||
|
||||
this.squareTopLeftCorner_ = false;
|
||||
|
||||
Reference in New Issue
Block a user