From 12c5d9f549c48e752452bb4fd10d73695286574d Mon Sep 17 00:00:00 2001 From: zepumph Date: Wed, 26 Jun 2019 16:20:14 -0800 Subject: [PATCH] all ui components should have enabledProperty and visibleProperty phetioFeatured, https://github.com/phetsims/phet-io/issues/1517 --- js/NumberPicker.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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