Skip to content

Commit

Permalink
Fix mixin regression, see phetsims/sun#865
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanolson committed Dec 20, 2023
1 parent f117aac commit 654f21a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/accessibility/voicing/InteractiveHighlighting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ const InteractiveHighlighting = memoize( <SuperType extends Constructor<Node>>(
* NOTE: See Node's _mutatorKeys documentation for more information on how this operates, and potential special
* cases that may apply.
*/
InteractiveHighlightingClass.prototype._mutatorKeys = INTERACTIVE_HIGHLIGHTING_OPTIONS.concat( Type.prototype._mutatorKeys );
InteractiveHighlightingClass.prototype._mutatorKeys = INTERACTIVE_HIGHLIGHTING_OPTIONS.concat( InteractiveHighlightingClass.prototype._mutatorKeys );

assert && assert( InteractiveHighlightingClass.prototype._mutatorKeys.length ===
_.uniq( InteractiveHighlightingClass.prototype._mutatorKeys ).length,
Expand Down
2 changes: 1 addition & 1 deletion js/accessibility/voicing/Voicing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ const Voicing = <SuperType extends Constructor<Node>>( Type: SuperType ) => { //
* NOTE: See Node's _mutatorKeys documentation for more information on how this operates, and potential special
* cases that may apply.
*/
VoicingClass.prototype._mutatorKeys = VOICING_OPTION_KEYS.concat( Type.prototype._mutatorKeys );
VoicingClass.prototype._mutatorKeys = VOICING_OPTION_KEYS.concat( VoicingClass.prototype._mutatorKeys );

assert && assert( VoicingClass.prototype._mutatorKeys.length === _.uniq( VoicingClass.prototype._mutatorKeys ).length, 'duplicate mutator keys in Voicing' );

Expand Down

0 comments on commit 654f21a

Please sign in to comment.