Skip to content

Commit

Permalink
remove emit2(), use emit() instead, #204 #211
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Feb 27, 2019
1 parent 439613c commit 3bd203e
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions js/Emitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,18 +293,6 @@ define( require => {
this.emit( arg0 );
}

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

/**
* Checks whether a listener is registered with this Emitter
* @param {function} listener
Expand Down

0 comments on commit 3bd203e

Please sign in to comment.