Skip to content

Commit

Permalink
add back in Slider to binder, phetsims/binder#27
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Jul 19, 2019
1 parent 7b85d2f commit 2674ee3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion js/Slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ define( function( require ) {
const Dimension2 = require( 'DOT/Dimension2' );
const FocusHighlightFromNode = require( 'SCENERY/accessibility/FocusHighlightFromNode' );
const inherit = require( 'PHET_CORE/inherit' );
const InstanceRegistry = require( 'PHET_CORE/documentation/InstanceRegistry' );
const Node = require( 'SCENERY/nodes/Node' );
const Path = require( 'SCENERY/nodes/Path' );
const PhetioObject = require( 'TANDEM/PhetioObject' );
Expand Down Expand Up @@ -350,7 +351,10 @@ define( function( require ) {
this.addLinkedElement( options.phetioLinkedProperty || valueProperty, {
tandem: options.tandem.createTandem( 'valueProperty' )
} );
}

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

sun.register( 'Slider', Slider );

Expand Down

0 comments on commit 2674ee3

Please sign in to comment.