]> source.dussan.org Git - jquery-ui.git/commitdiff
Autocomplete: ensure clear searching timeout on destroy. 425/head
authorKouhei Sutou <kou@clear-code.com>
Sun, 7 Aug 2011 06:50:34 +0000 (15:50 +0900)
committerKouhei Sutou <kou@clear-code.com>
Sun, 7 Aug 2011 06:50:34 +0000 (15:50 +0900)
ui/jquery.ui.autocomplete.js

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