mirror of
https://github.com/google/blockly.git
synced 2026-03-14 09:10:09 +01:00
Don't fire change event on fields that haven't been named yet.
This commit is contained in:
@@ -156,10 +156,6 @@ Blockly.Field.prototype.init = function() {
|
||||
Blockly.bindEvent_(this.fieldGroup_, 'mouseup', this, this.onMouseUp_);
|
||||
// Force a render.
|
||||
this.updateTextNode_();
|
||||
if (Blockly.Events.isEnabled()) {
|
||||
Blockly.Events.fire(new Blockly.Events.Change(
|
||||
this.sourceBlock_, 'field', this.name, '', this.getValue()));
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user