Skip to content

Commit

Permalink
Add EnabledNode PhET-iO API and support for LinkedElementIO in API va…
Browse files Browse the repository at this point in the history
…lidation, mixin EnabledComponentAPIMixin into SliderAPI, phetsims/sun#605
  • Loading branch information
zepumph committed Jul 17, 2020
1 parent a17f527 commit d7c69ee
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions js/PropertyAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,23 @@
* @author Michael Kauzmann (PhET Interactive Simulations)
*/

import PhetioObjectAPI from '../../../tandem/js/PhetioObjectAPI.js';
import PhetioObjectAPI from '../../tandem/js/PhetioObjectAPI.js';
import merge from '../../phet-core/js/merge.js';
import required from '../../phet-core/js/required.js';
import axon from './axon.js';

class PropertyAPI extends PhetioObjectAPI {

/**
* @param {Object} [options]
* @param {Object} config
*/
constructor( options ) {
super( options );
constructor( config ) {

config = merge( {
phetioType: required( config.phetioType )
}, config );

super( config );
}
}

Expand Down

1 comment on commit d7c69ee

@zepumph
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.