Skip to content

Commit

Permalink
simplify options extend, #222
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed May 1, 2019
1 parent 20d9318 commit 899be0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/Emitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ define( require => {
// If validators and/or phetioType are supplied, the parent will check via assertions that supplied options
// are correct.
if ( options && !options.validators && !options.phetioType ) {
options = _.extend( {}, options, { phetioType: EmitterIOWithNoArgs } );
options = _.extend( { phetioType: EmitterIOWithNoArgs }, options );
}

super( function() {
Expand Down

0 comments on commit 899be0a

Please sign in to comment.