Skip to content

Commit

Permalink
add TimeControlNode to binder, phetsims/binder#27
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Jul 7, 2020
1 parent 6a2665d commit 2793a0b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/TimeControlNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
*/

import BooleanProperty from '../../axon/js/BooleanProperty.js';
import InstanceRegistry from '../../phet-core/js/documentation/InstanceRegistry.js';
import merge from '../../phet-core/js/merge.js';
import HBox from '../../scenery/js/nodes/HBox.js';
import Node from '../../scenery/js/nodes/Node.js';
Expand Down Expand Up @@ -213,6 +214,9 @@ class TimeControlNode extends Node {
// mutate with options after spacing and layout is complete so other layout options apply correctly to the
// whole TimeControlNode
this.mutate( options );

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

/**
Expand Down

0 comments on commit 2793a0b

Please sign in to comment.