Skip to content

Commit

Permalink
Contains to includes, see phetsims/scenery-phet#369
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanolson committed Apr 9, 2018
1 parent 6b847b5 commit 848349d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/nodes/RichText.js
Original file line number Diff line number Diff line change
Expand Up @@ -1711,7 +1711,7 @@ define( function( require ) {
var tmp = this.addAccessibleInputListener( this.accessibleInputListener );

// "safe?" workaround for https://github.com/phetsims/scenery/issues/764
if ( this.getAccessibleInputListeners() && this.getAccessibleInputListeners().contains( tmp ) ) {
if ( this.getAccessibleInputListeners() && this.getAccessibleInputListeners().includes( tmp ) ) {
this.accessibleInputListener = tmp;
}
}
Expand Down

0 comments on commit 848349d

Please sign in to comment.