From 72268c36c191abb21d6a97cd0594dd19f2daa2f7 Mon Sep 17 00:00:00 2001 From: zepumph Date: Wed, 27 Feb 2019 13:46:23 -0900 Subject: [PATCH] remove emit1(), use emit() instead, https://github.com/phetsims/axon/issues/211 --- js/accessibility/AccessibleNumberSpinner.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/accessibility/AccessibleNumberSpinner.js b/js/accessibility/AccessibleNumberSpinner.js index 5f986a13..5380fcb5 100644 --- a/js/accessibility/AccessibleNumberSpinner.js +++ b/js/accessibility/AccessibleNumberSpinner.js @@ -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(); @@ -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 ); } },