From b0d4cc7006fcc72da0bd35f2281761e26caee096 Mon Sep 17 00:00:00 2001 From: zepumph Date: Wed, 27 Feb 2019 13:46:22 -0900 Subject: [PATCH] remove emit1(), use emit() instead, https://github.com/phetsims/axon/issues/211 --- js/Emitter.js | 11 ----------- js/timer.js | 2 +- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/js/Emitter.js b/js/Emitter.js index fcd02d9d..0241b69e 100644 --- a/js/Emitter.js +++ b/js/Emitter.js @@ -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 diff --git a/js/timer.js b/js/timer.js index b4b3b485..e8746b58 100644 --- a/js/timer.js +++ b/js/timer.js @@ -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' } ] } ) ); } ); \ No newline at end of file