diff --git a/js/NumberPicker.js b/js/NumberPicker.js index 661a2254..525b775f 100644 --- a/js/NumberPicker.js +++ b/js/NumberPicker.js @@ -11,31 +11,32 @@ define( function( require ) { 'use strict'; // modules - var AccessibleNumberSpinner = require( 'SUN/accessibility/AccessibleNumberSpinner' ); - var BooleanProperty = require( 'AXON/BooleanProperty' ); - var ButtonListener = require( 'SCENERY/input/ButtonListener' ); - var Color = require( 'SCENERY/util/Color' ); - var DerivedProperty = require( 'AXON/DerivedProperty' ); - var Dimension2 = require( 'DOT/Dimension2' ); - var FireOnHoldInputListener = require( 'SCENERY_PHET/buttons/FireOnHoldInputListener' ); - var FocusHighlightPath = require( 'SCENERY/accessibility/FocusHighlightPath' ); - var inherit = require( 'PHET_CORE/inherit' ); - var LinearGradient = require( 'SCENERY/util/LinearGradient' ); - var MathSymbols = require( 'SCENERY_PHET/MathSymbols' ); - var Node = require( 'SCENERY/nodes/Node' ); - var PaintColorProperty = require( 'SCENERY/util/PaintColorProperty' ); - var Path = require( 'SCENERY/nodes/Path' ); - var PhetFont = require( 'SCENERY_PHET/PhetFont' ); - var PhetioObject = require( 'TANDEM/PhetioObject' ); - var Property = require( 'AXON/Property' ); - var Rectangle = require( 'SCENERY/nodes/Rectangle' ); - var sceneryPhet = require( 'SCENERY_PHET/sceneryPhet' ); - var Shape = require( 'KITE/Shape' ); - var StringProperty = require( 'AXON/StringProperty' ); - var SunConstants = require( 'SUN/SunConstants' ); - var Tandem = require( 'TANDEM/Tandem' ); - var Text = require( 'SCENERY/nodes/Text' ); - var Util = require( 'DOT/Util' ); + const AccessibleNumberSpinner = require( 'SUN/accessibility/AccessibleNumberSpinner' ); + const BooleanProperty = require( 'AXON/BooleanProperty' ); + const ButtonListener = require( 'SCENERY/input/ButtonListener' ); + const Color = require( 'SCENERY/util/Color' ); + const DerivedProperty = require( 'AXON/DerivedProperty' ); + const Dimension2 = require( 'DOT/Dimension2' ); + const FireOnHoldInputListener = require( 'SCENERY_PHET/buttons/FireOnHoldInputListener' ); + const FocusHighlightPath = require( 'SCENERY/accessibility/FocusHighlightPath' ); + const inherit = require( 'PHET_CORE/inherit' ); + const InstanceRegistry = require( 'PHET_CORE/documentation/InstanceRegistry' ); + const LinearGradient = require( 'SCENERY/util/LinearGradient' ); + const MathSymbols = require( 'SCENERY_PHET/MathSymbols' ); + const Node = require( 'SCENERY/nodes/Node' ); + const PaintColorProperty = require( 'SCENERY/util/PaintColorProperty' ); + const Path = require( 'SCENERY/nodes/Path' ); + const PhetFont = require( 'SCENERY_PHET/PhetFont' ); + const PhetioObject = require( 'TANDEM/PhetioObject' ); + const Property = require( 'AXON/Property' ); + const Rectangle = require( 'SCENERY/nodes/Rectangle' ); + const sceneryPhet = require( 'SCENERY_PHET/sceneryPhet' ); + const Shape = require( 'KITE/Shape' ); + const StringProperty = require( 'AXON/StringProperty' ); + const SunConstants = require( 'SUN/SunConstants' ); + const Tandem = require( 'TANDEM/Tandem' ); + const Text = require( 'SCENERY/nodes/Text' ); + const Util = require( 'DOT/Util' ); /** * @param {Property.} valueProperty @@ -440,6 +441,9 @@ define( function( require ) { // a11y mixin self.disposeAccessibleNumberSpinner(); }; + + // support for binder documentation, stripped out in builds and only runs when ?binder is specified + assert && phet.chipper.queryParameters.binder && InstanceRegistry.registerDataURL( 'scenery-phet', 'NumberPicker', this ); } sceneryPhet.register( 'NumberPicker', NumberPicker );