Merge pull request #2791 from BeksOmega/fixes/RemoveCallValidator

Removed Deprecated callValidator Call
This commit is contained in:
Rachel Fenichel
2019-08-20 11:15:19 -07:00
committed by GitHub

View File

@@ -170,9 +170,6 @@ Blockly.Events.Change.prototype.run = function(forward) {
case 'field':
var field = block.getField(this.name);
if (field) {
// Run the validator for any side-effects it may have.
// The validator's opinion on validity is ignored.
field.callValidator(value);
field.setValue(value);
} else {
console.warn("Can't set non-existent field: " + this.name);