From fecb3e544f75c9c67cbd934969a070a1d10c7a5f Mon Sep 17 00:00:00 2001 From: zepumph Date: Wed, 27 Feb 2019 12:52:47 -0900 Subject: [PATCH] remove emit2(), use emit() instead, https://github.com/phetsims/axon/issues/204 https://github.com/phetsims/axon/issues/211 --- js/common/model/Pendulum.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/common/model/Pendulum.js b/js/common/model/Pendulum.js index 8174c39..6ddfe80 100644 --- a/js/common/model/Pendulum.js +++ b/js/common/model/Pendulum.js @@ -102,7 +102,7 @@ define( function( require ) { // @public this.stepEmitter = new Emitter(); this.userMovedEmitter = new Emitter(); - this.crossingEmitter = new Emitter(); + this.crossingEmitter = new Emitter( { validationEnabled: false } ); this.peakEmitter = new Emitter(); this.resetEmitter = new Emitter(); @@ -260,7 +260,7 @@ define( function( require ) { // to newDT. var crossingDT = Util.linear( oldTheta, newTheta, oldDT, newDT, 0 ); - this.crossingEmitter.emit2( crossingDT, isPositiveDirection ); + this.crossingEmitter.emit( crossingDT, isPositiveDirection ); }, /**