Skip to content

Commit

Permalink
remove emit3(), use emit() instead, phetsims/axon#204 phetsims/axon#211
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Feb 27, 2019
1 parent daf78c4 commit 2242993
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/common/model/TermCreator.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ define( function( require ) {
// Callback signature is function( {TermCreator} termCreator, {Term} term, {Event|null} [event] ),
// where event is non-null if the term was created as the result of a user interaction.
// dispose not required.
this.termCreatedEmitter = new Emitter();
this.termCreatedEmitter = new Emitter( { validationEnabled: false } );

// @public emit is called when adding a term to the plate would cause EqualityExplorerQueryParameters.maxInteger
// to be exceeded. See See https://github.com/phetsims/equality-explorer/issues/48
Expand Down Expand Up @@ -320,7 +320,7 @@ define( function( require ) {

// Notify listeners that a term is being managed by this term creator.
// This will result in creation of the corresponding view.
this.termCreatedEmitter.emit3( this, term, event );
this.termCreatedEmitter.emit( this, term, event );
},

/**
Expand Down

0 comments on commit 2242993

Please sign in to comment.