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 7e7bc1e commit 149bf9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/common/model/CLBModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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 );
}
Expand Down

0 comments on commit 149bf9e

Please sign in to comment.