Skip to content

Commit

Permalink
rename accessibleDescription --> descriptionContent, remove descripti…
Browse files Browse the repository at this point in the history
…on 'AsHTML' method, #752
  • Loading branch information
zepumph committed Mar 31, 2018
1 parent ac4fa2a commit 93ae457
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions js/accessibility/Accessibility.js
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ define( function( require ) {
}

this.updateAccessiblePeers( function( accessiblePeer ) {
setTextContent( accessiblePeer.descriptionSibling, descriptionContent, useHTML );
setTextContent( accessiblePeer.descriptionSibling, descriptionContent, useHTML );
} );

},
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 93ae457

Please sign in to comment.