Skip to content

Commit

Permalink
Fix error when creating uneditable blocks with mutators.
Browse files Browse the repository at this point in the history
  • Loading branch information
NeilFraser committed Feb 7, 2015
1 parent 9e81d41 commit d05177e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion blockly_compressed.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions core/mutator.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,10 @@ Blockly.Mutator.prototype.updateEditable = function() {
} else {
// Close any mutator bubble. Icon is not clickable.
this.setVisible(false);
Blockly.removeClass_(/** @type {!Element} */ (this.iconGroup_),
'blocklyIconGroup');
if (this.iconGroup_) {
Blockly.removeClass_(/** @type {!Element} */ (this.iconGroup_),
'blocklyIconGroup');
}
}
};

Expand Down

0 comments on commit d05177e

Please sign in to comment.