Fix compiler warnings related to fields. (#3144)

* Fix compiler warnings related to fields.
This commit is contained in:
Sam El-Husseini
2019-10-03 15:58:46 -07:00
committed by GitHub
parent 7839512f0e
commit d0772ad496
27 changed files with 74 additions and 78 deletions

View File

@@ -131,7 +131,7 @@ Blockly.Extensions.registerMutator = function(name, mixinObj, opt_helperFn,
*/
Blockly.Extensions.unregister = function(name) {
if (Blockly.Extensions.ALL_[name]) {
Blockly.Extensions.ALL_[name] = undefined;
delete Blockly.Extensions.ALL_[name];
} else {
console.warn('No extension mapping for name "' + name +
'" found to unregister');