Skip to content

Commit

Permalink
registered AccordionBox for binder inclusion, see phetsims/binder#6
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarlow12 committed May 24, 2018
1 parent f672cfd commit eb3b8fa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/AccordionBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ define( function( require ) {
var BooleanProperty = require( 'AXON/BooleanProperty' );
var ExpandCollapseButton = require( 'SUN/ExpandCollapseButton' );
var inherit = require( 'PHET_CORE/inherit' );
var InstanceRegistry = require( 'PHET_CORE/documentation/InstanceRegistry' );
var Node = require( 'SCENERY/nodes/Node' );
var Path = require( 'SCENERY/nodes/Path' );
var Rectangle = require( 'SCENERY/nodes/Rectangle' );
Expand Down Expand Up @@ -343,6 +344,9 @@ define( function( require ) {
}

this.mutate( _.omit( options, 'cursor' ) );

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

sun.register( 'AccordionBox', AccordionBox );
Expand Down

0 comments on commit eb3b8fa

Please sign in to comment.