From 93ae457bef60a3d7d0089b0bf3d1f63267983785 Mon Sep 17 00:00:00 2001 From: zepumph Date: Sat, 31 Mar 2018 11:55:47 -0800 Subject: [PATCH] rename accessibleDescription --> descriptionContent, remove description 'AsHTML' method, https://github.com/phetsims/scenery/issues/752 --- js/accessibility/Accessibility.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/js/accessibility/Accessibility.js b/js/accessibility/Accessibility.js index dd3c62926..1646aafe9 100644 --- a/js/accessibility/Accessibility.js +++ b/js/accessibility/Accessibility.js @@ -812,7 +812,7 @@ define( function( require ) { } this.updateAccessiblePeers( function( accessiblePeer ) { - setTextContent( accessiblePeer.descriptionSibling, descriptionContent, useHTML ); + setTextContent( accessiblePeer.descriptionSibling, descriptionContent, useHTML ); } ); }, @@ -1972,12 +1972,7 @@ define( function( require ) { // set the accessible description if ( self._descriptionContent ) { - if ( self._descriptionIsHTML ) { - self.setAccessibleDescriptionAsHTML( self._descriptionContent ); - } - else { - self.setDescriptionContent( self._descriptionContent ); - } + self.setDescriptionContent( self._descriptionContent ); } // if element is an input element, set input type