mirror of
https://github.com/google/blockly.git
synced 2026-01-06 00:20:37 +01:00
fix: Fix blocks with mutators. (#6440)
* refactor: Revert the Mutator/Icon constructor API changes with a deprecation warning. * fix: Update the block definitions to use the new Mutator constructor.
This commit is contained in:
@@ -98,7 +98,7 @@ export function registerMutator(
|
||||
// Sanity checks passed.
|
||||
register(name, function(this: Block) {
|
||||
if (hasMutatorDialog) {
|
||||
this.setMutator(new Mutator(this as BlockSvg, opt_blockList || []));
|
||||
this.setMutator(new Mutator(opt_blockList || [], this as BlockSvg));
|
||||
}
|
||||
// Mixin the object.
|
||||
this.mixin(mixinObj);
|
||||
|
||||
Reference in New Issue
Block a user