Skip to content

Commit

Permalink
remove emit1(), use emit() instead, phetsims/axon#211
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Feb 27, 2019
1 parent 4654f48 commit 72268c3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions js/accessibility/AccessibleNumberSpinner.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ define( function( require ) {
} );

// @private {Emitter} emit events when increment/decrement keys are pressed down/up
this.incrementDownEmitter = new Emitter();
this.decrementDownEmitter = new Emitter();
this.incrementDownEmitter = new Emitter( { validationEnabled: false } );
this.decrementDownEmitter = new Emitter( { validationEnabled: false } );

// @private {Emitter} - emit events when value is incremented/decremented
this.valueIncrementEmitter = new Emitter();
Expand Down Expand Up @@ -244,10 +244,10 @@ define( function( require ) {
*/
emitKeyState: function( keyCode, isDown ) {
if ( keyCode === KeyboardUtil.KEY_UP_ARROW || keyCode === KeyboardUtil.KEY_RIGHT_ARROW ) {
this.incrementDownEmitter.emit1( isDown );
this.incrementDownEmitter.emit( isDown );
}
else if ( keyCode === KeyboardUtil.KEY_DOWN_ARROW || keyCode === KeyboardUtil.KEY_LEFT_ARROW ) {
this.decrementDownEmitter.emit1( isDown );
this.decrementDownEmitter.emit( isDown );
}
},

Expand Down

0 comments on commit 72268c3

Please sign in to comment.