aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKouhei Sutou <kou@clear-code.com>2011-08-07 15:50:34 +0900
committerKouhei Sutou <kou@clear-code.com>2011-08-07 15:50:34 +0900
commitb83a2063cf69f52399816800e8801cb80e362cd6 (patch)
treecfe8168ec9d52843bfe02491ff535410044f6d32
parente9cdd576f4327f947b00032b6d1aaa60c305c844 (diff)
downloadjquery-ui-b83a2063cf69f52399816800e8801cb80e362cd6.tar.gz
jquery-ui-b83a2063cf69f52399816800e8801cb80e362cd6.zip
Autocomplete: ensure clear searching timeout on destroy.
-rw-r--r--ui/jquery.ui.autocomplete.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/jquery.ui.autocomplete.js b/ui/jquery.ui.autocomplete.js
index 09c3707f0..3e0163682 100644
--- a/ui/jquery.ui.autocomplete.js
+++ b/ui/jquery.ui.autocomplete.js
@@ -263,6 +263,7 @@ $.widget( "ui.autocomplete", {
},
_destroy: function() {
+ clearTimeout( this.searching );
this.element
.removeClass( "ui-autocomplete-input" )
.removeAttr( "autocomplete" )