diff --git a/js/NumberPicker.js b/js/NumberPicker.js index f64fea62..661a2254 100644 --- a/js/NumberPicker.js +++ b/js/NumberPicker.js @@ -124,7 +124,6 @@ define( function( require ) { // a11y pageKeyboardStep: 2 // {number} - change in value when using page up/page down, see AccessibleNumberSpinner - }, options ); // {Color|string|Property. 0 && options.disabledOpacity < 1, `invalid disabledOpacity: ${options.disabledOpacity}` ); + PhetioObject.mergePhetioComponentOptions( { visibleProperty: { phetioFeatured: true } }, options ); + var self = this; Node.call( this ); @@ -167,6 +168,9 @@ define( function( require ) { phetioFeatured: true }, options.enabledPropertyOptions ) ); } + else { + assert && assert( this.enabledProperty.phetioFeatured, 'provided enabledProperty must be phetioFeatured' ); + } //------------------------------------------------------------ // Nodes