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 );
this.element
.removeClass( "ui-autocomplete-input" )
.removeAttr( "autocomplete" )
.removeAttr( "role" )
.removeAttr( "aria-autocomplete" )
.removeAttr( "aria-haspopup" );
.removeAttr( "autocomplete" );
this.menu.element.remove();
this.liveRegion.remove();
},