From 36130cbc396660066c97e8788f0f20e073aa91f1 Mon Sep 17 00:00:00 2001 From: Neil Fraser Date: Wed, 15 Jun 2016 01:30:04 -0700 Subject: [PATCH] Don't fire change event on fields that haven't been named yet. --- core/field.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/core/field.js b/core/field.js index 4eea423ec..0ea102fff 100644 --- a/core/field.js +++ b/core/field.js @@ -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())); - } }; /**