diff --git a/core/block_svg.js b/core/block_svg.js index 6585024bf..3c40f75c4 100644 --- a/core/block_svg.js +++ b/core/block_svg.js @@ -912,8 +912,9 @@ Blockly.BlockSvg.prototype.setMovable = function(movable) { Blockly.BlockSvg.prototype.setEditable = function(editable) { Blockly.BlockSvg.superClass_.setEditable.call(this, editable); if (this.rendered) { - for (var i = 0; i < this.icons_.length; i++) { - this.icons_[i].updateEditable(); + var icons = this.getIcons(); + for (var i = 0; i < icons.length; i++) { + icons[i].updateEditable(); } } };