Skip to content

Commit

Permalink
Comment out and add TODO, see #217 and phetsims/phet-io#1657
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Oct 27, 2020
1 parent 7ac4822 commit eedc672
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions js/types/IOType.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,11 @@ class IOType {
assert && assert( this.methods[ methodName ], 'methodName not in public methods: ' + methodName );
} );

if ( this.hasOwnProperty( 'api' ) ) {
assert && assert( this.api instanceof Object, 'Object expected for api' );
assert && assert( Object.getPrototypeOf( this.api ) === Object.prototype, 'no extra prototype allowed on API object' );
}
// TODO: support API checking, see https://github.com/phetsims/phet-io/issues/1657
// if ( this.hasOwnProperty( 'api' ) ) {
// assert && assert( this.api instanceof Object, 'Object expected for api' );
// assert && assert( Object.getPrototypeOf( this.api ) === Object.prototype, 'no extra prototype allowed on API object' );
// }

// Make sure events are not listed again
if ( supertype ) {
Expand Down

0 comments on commit eedc672

Please sign in to comment.