From f7e455e856bda15b9a470398161fd871f1422b57 Mon Sep 17 00:00:00 2001 From: miguel76 Date: Mon, 4 Apr 2016 18:09:18 -0300 Subject: [PATCH] Fix #313 --- core/block_svg.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/block_svg.js b/core/block_svg.js index f31bbf035..9215d24d8 100644 --- a/core/block_svg.js +++ b/core/block_svg.js @@ -917,8 +917,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(); } } };