Skip to content

Commit

Permalink
remove emit1(), use emit() instead, #211
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Feb 27, 2019
1 parent 3bd203e commit b0d4cc7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
11 changes: 0 additions & 11 deletions js/Emitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,17 +282,6 @@ define( require => {
this.isPhetioInstrumented() && this.phetioEndEvent();
}

/**
* Emits a single event with one argument.
* @param {*} arg0
* @public
* @deprecated - please use emit()
*/
emit1( arg0 ) {
this.validationEnabled = false; // Disable validation until emit() is used properly
this.emit( arg0 );
}

/**
* Checks whether a listener is registered with this Emitter
* @param {function} listener
Expand Down
2 changes: 1 addition & 1 deletion js/timer.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,5 @@ define( require => {
}

// Register and return a singleton
return axon.register( 'timer', new Timer() );
return axon.register( 'timer', new Timer( { validators: [ { valueType: 'number' } ] } ) );
} );

0 comments on commit b0d4cc7

Please sign in to comment.