From 149bf9e9e2427514fd6581931b28de682206f968 Mon Sep 17 00:00:00 2001 From: zepumph Date: Wed, 27 Feb 2019 13:46:09 -0900 Subject: [PATCH] remove emit1(), use emit() instead, https://github.com/phetsims/axon/issues/211 --- js/common/model/CLBModel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/common/model/CLBModel.js b/js/common/model/CLBModel.js index de1465a4..fe4ae2b6 100644 --- a/js/common/model/CLBModel.js +++ b/js/common/model/CLBModel.js @@ -121,7 +121,7 @@ define( function( require ) { } ); // @public {Emitter} - this.stepEmitter = new Emitter(); + this.stepEmitter = new Emitter( { validationEnabled: false } ); // @private {Bounds2} this.worldBounds = CANVAS_RENDERING_SIZE.toBounds(); @@ -187,7 +187,7 @@ define( function( require ) { // If a manual step is called the dt should be the same a normal dt value. var adjustedDt = isManual ? dt : dt * ( this.isSlowMotionProperty.value ? 0.125 : 1 ); this.circuit.step( adjustedDt ); - this.stepEmitter.emit1( adjustedDt ); + this.stepEmitter.emit( adjustedDt ); if ( this.isRunningProperty.value ) { this.secondsProperty.set( this.secondsProperty.value + adjustedDt ); }