r3324 committed - autocomplete: prevent double call to close (selected+blur)

r3324 committed - autocomplete: prevent double call to close (selected+blur)


Revision: 3324
Author: joern.zaefferer
Date: Tue Sep 29 13:49:48 2009
Log: autocomplete: prevent double call to close (selected+blur)
http://code.google.com/p/jquery-ui/source/detail?r=3324
Modified:
/branches/dev/ui/jquery.ui.autocomplete.js
=======================================
--- /branches/dev/ui/jquery.ui.autocomplete.js    Tue Sep 29 13:36:21 2009
+++ /branches/dev/ui/jquery.ui.autocomplete.js    Tue Sep 29 13:49:48 2009
@@ -94,6 +94,7 @@
    },
    close: function(selected) {
+        clearTimeout(this.closing);
        if (this.menu) {
            this._trigger("close");
            this.menu.remove();
@@ -121,7 +122,7 @@
            selected: function(event, ui) {
                var data = ui.item.data("item.autocomplete");
                self.element.val( data.result );
-                self.close({ item: data })
+                self.close({ item: data });
            }
        }).position({
            my: "left top",