Don't fire change event on fields that haven't been named yet.

This commit is contained in:
Neil Fraser
2016-06-15 01:30:04 -07:00
parent 04ebbb3b76
commit 36130cbc39

View File

@@ -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()));
}
};
/**