Skip to content

Commit

Permalink
Allow unspecified phetioType, see #603
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Feb 8, 2017
1 parent a6d7fe2 commit a30a31d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/nodes/Node.js
Original file line number Diff line number Diff line change
Expand Up @@ -4669,7 +4669,7 @@ define( function( require ) {

_.each( this._mutatorKeys, function( key ) {
// See https://github.com/phetsims/scenery/issues/580 for more about passing undefined.
assert && assert( !options.hasOwnProperty( key ) || options[ key ] !== undefined,
assert && assert( !options.hasOwnProperty( key ) || options[ key ] !== undefined || key === 'phetioType',
'Undefined not allowed for Node key: ' + key );

if ( options[ key ] !== undefined ) {
Expand Down

0 comments on commit a30a31d

Please sign in to comment.