From edcc7a629dcbada08f81acc60bab19fd84577d5b Mon Sep 17 00:00:00 2001 From: Jesse Date: Mon, 1 Aug 2022 12:05:56 -0400 Subject: [PATCH] voicingVisibleEmitter is removed, replaced by canVoiceEmitter, see https://github.com/phetsims/scenery/issues/1300 --- js/display/Instance.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/js/display/Instance.js b/js/display/Instance.js index 8d7b3cd70..c5bbfabe2 100644 --- a/js/display/Instance.js +++ b/js/display/Instance.js @@ -139,7 +139,6 @@ class Instance { this.visibleEmitter = new TinyEmitter(); this.relativeVisibleEmitter = new TinyEmitter(); this.selfVisibleEmitter = new TinyEmitter(); - this.voicingVisibleEmitter = new TinyEmitter(); this.canVoiceEmitter = new TinyEmitter(); this.cleanInstance( display, trail ); @@ -1564,9 +1563,6 @@ class Instance { if ( this.selfVisible !== wasSelfVisible ) { this.selfVisibleEmitter.emit(); } - if ( this.voicingVisible !== wasVoicingVisible ) { - this.voicingVisibleEmitter.emit(); - } // An Instance can voice when it is globally visible and voicingVisible. Notify when this state has changed // based on these dependencies. @@ -1824,7 +1820,6 @@ class Instance { this.visibleEmitter.removeAllListeners(); this.relativeVisibleEmitter.removeAllListeners(); this.selfVisibleEmitter.removeAllListeners(); - this.voicingVisibleEmitter.removeAllListeners(); this.freeToPool();