Use registry for creating the no-category flyout (#4659)

* Use registry for creating the horizontal / vertical flyout
This commit is contained in:
Sam El-Husseini
2021-03-01 10:00:47 -08:00
committed by GitHub
parent 01035c3526
commit 5780399750
4 changed files with 43 additions and 41 deletions

View File

@@ -51,7 +51,7 @@ Blockly.Workspace = function(opt_options) {
this.toolboxPosition = this.options.toolboxPosition;
var connectionCheckerClass = Blockly.registry.getClassFromOptions(
Blockly.registry.Type.CONNECTION_CHECKER, this.options);
Blockly.registry.Type.CONNECTION_CHECKER, this.options, true);
/**
* An object that encapsulates logic for safety, type, and dragging checks.
* @type {!Blockly.IConnectionChecker}