From 37eef1dfc2b77a6266baf458d386bb3010fa2f14 Mon Sep 17 00:00:00 2001 From: Jonathan Olson Date: Wed, 8 Apr 2020 22:04:48 -0600 Subject: [PATCH] Initial work for removing Events .on()/.onStatic()/.off()/.offStatic(), see https://github.com/phetsims/scenery/issues/490 --- js/accessibility/pdom/ParallelDOM.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/js/accessibility/pdom/ParallelDOM.js b/js/accessibility/pdom/ParallelDOM.js index 756d30107..809fe1a4e 100644 --- a/js/accessibility/pdom/ParallelDOM.js +++ b/js/accessibility/pdom/ParallelDOM.js @@ -1443,7 +1443,7 @@ const ParallelDOM = { focusHighlight.visible = this.focused; } - this.trigger( 'focusHighlightChanged' ); + this.focusHighlightChangedEmitter.emit(); } }, set focusHighlight( focusHighlight ) { this.setFocusHighlight( focusHighlight ); }, @@ -2049,7 +2049,7 @@ const ParallelDOM = { PDOMTree.accessibleOrderChange( this, oldAccessibleOrder, accessibleOrder ); - this.trigger0( 'accessibleOrder' ); + this.accessibleOrderEmitter.emit(); } }, set accessibleOrder( value ) { this.setAccessibleOrder( value ); }, @@ -2633,8 +2633,7 @@ const ParallelDOM = { // recompute the heading level for this node if it is using the accessibleHeading API. this._accessibleHeading && this.computeHeadingLevel(); - - this.trigger0( 'accessibleContent' ); + this.accessibleContentEmitter.emit(); }, /**