Autocomplete: We no longer need to remove aria attributes on destroy.

This commit is contained in:
Scott González 2012-05-23 19:28:52 -04:00
parent 164e46e9aa
commit d0ef9d6fb2

View File

@ -308,10 +308,7 @@ $.widget( "ui.autocomplete", {
clearTimeout( this.searching ); clearTimeout( this.searching );
this.element this.element
.removeClass( "ui-autocomplete-input" ) .removeClass( "ui-autocomplete-input" )
.removeAttr( "autocomplete" ) .removeAttr( "autocomplete" );
.removeAttr( "role" )
.removeAttr( "aria-autocomplete" )
.removeAttr( "aria-haspopup" );
this.menu.element.remove(); this.menu.element.remove();
this.liveRegion.remove(); this.liveRegion.remove();
}, },