mirror of
https://github.com/google/blockly.git
synced 2026-01-07 09:00:11 +01:00
Add UI events.
This commit is contained in:
@@ -164,6 +164,8 @@ Blockly.Comment.prototype.setVisible = function(visible) {
|
||||
// No change.
|
||||
return;
|
||||
}
|
||||
Blockly.Events.fire(
|
||||
new Blockly.Events.Ui(this.block_, 'commentOpen', !visible, visible));
|
||||
if ((!this.block_.isEditable() && !this.textarea_) || goog.userAgent.IE) {
|
||||
// Steal the code from warnings to make an uneditable text bubble.
|
||||
// MSIE does not support foreignobject; textareas are impossible.
|
||||
|
||||
Reference in New Issue
Block a user