Skip to content

Commit

Permalink
#9859: The editor was breaking with instances without editable.
Browse files Browse the repository at this point in the history
  • Loading branch information
fredck committed Dec 21, 2012
1 parent 3059c62 commit c5fbe67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/editable.js
Original file line number Diff line number Diff line change
Expand Up @@ -925,9 +925,9 @@

// Setup proper ARIA roles and properties for inline editable, framed
// editable is instead handled by plugin.
if ( editable.isInline() ) {
if ( editable && editable.isInline() ) {

var ariaLabel = [ this.lang.editor, this.name ].join( ',' );
var ariaLabel = this.lang.editor + ', ' + this.name;

editable.changeAttr( 'role', 'textbox' );
editable.changeAttr( 'aria-label', ariaLabel );
Expand Down

0 comments on commit c5fbe67

Please sign in to comment.