From: jzaefferer Date: Fri, 26 Mar 2010 16:42:03 +0000 (-0400) Subject: Autocomplete: Only remove classes actually added by the widget, ui-widget etc. aren... X-Git-Tag: 1.8.1~5^2~49^2~5^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6d9caf1e230b7b9a4291a8e3525eefad2f08b6f8;p=jquery-ui.git Autocomplete: Only remove classes actually added by the widget, ui-widget etc. aren't added, so don't remove them --- diff --git a/ui/jquery.ui.autocomplete.js b/ui/jquery.ui.autocomplete.js index eb07b4a4e..a1d798c59 100644 --- a/ui/jquery.ui.autocomplete.js +++ b/ui/jquery.ui.autocomplete.js @@ -140,7 +140,7 @@ $.widget( "ui.autocomplete", { destroy: function() { this.element - .removeClass( "ui-autocomplete-input ui-widget ui-widget-content" ) + .removeClass( "ui-autocomplete-input" ) .removeAttr( "autocomplete" ) .removeAttr( "role" ) .removeAttr( "aria-autocomplete" )