Skip to content

Commit

Permalink
add ToolboxPattern.md to binder, and update doc phetsims/a11y-researc…
Browse files Browse the repository at this point in the history
…h#166

Signed-off-by: Michael Kauzmann <[email protected]>
  • Loading branch information
zepumph committed Mar 12, 2024
1 parent e5a16da commit 8a23b60
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/common/view/tools/GOToolboxNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import PickRequired from '../../../../../phet-core/js/types/PickRequired.js';
import GOToolNode from './GOToolNode.js';
import Bounds2 from '../../../../../dot/js/Bounds2.js';
import Vector2 from '../../../../../dot/js/Vector2.js';
import InstanceRegistry from '../../../../../phet-core/js/documentation/InstanceRegistry.js';

type SelfOptions = EmptySelfOptions;

Expand Down Expand Up @@ -64,6 +65,9 @@ export default class GOToolboxNode extends Panel {
// Tell the tools that they are associated with this toolbox.
// This allows tools to determine when they have been dragged back to the toolbox.
toolNodes.forEach( toolNode => toolNode.setToolboxNode( this ) );

// support for binder documentation, stripped out in builds and only runs when ?binder is specified
assert && phet?.chipper?.queryParameters?.binder && InstanceRegistry.registerToolbox( this );
}

/**
Expand Down

0 comments on commit 8a23b60

Please sign in to comment.