Autocomplete: ensure clear searching timeout on destroy.

This commit is contained in:
Kouhei Sutou 2011-08-07 15:50:34 +09:00
parent e9cdd576f4
commit b83a2063cf

View File

@ -263,6 +263,7 @@ $.widget( "ui.autocomplete", {
},
_destroy: function() {
clearTimeout( this.searching );
this.element
.removeClass( "ui-autocomplete-input" )
.removeAttr( "autocomplete" )