r3370 committed - autocomplete: fixed broken log, merging the two change callbacks

r3370 committed - autocomplete: fixed broken log, merging the two change callbacks


Revision: 3370
Author: joern.zaefferer
Date: Sat Oct 17 04:45:26 2009
Log: autocomplete: fixed broken log, merging the two change callbacks
http://code.google.com/p/jquery-ui/source/detail?r=3370
Modified:
/branches/dev/tests/visual/autocomplete/remote-jsonp.html
=======================================
--- /branches/dev/tests/visual/autocomplete/remote-jsonp.html    Sat Oct 17
04:40:40 2009
+++ /branches/dev/tests/visual/autocomplete/remote-jsonp.html    Sat Oct 17
04:45:26 2009
@@ -47,6 +47,7 @@
            },
            minLength: 2,
            change: function(event, ui) {
+                $(this).removeClass("loading");
                log(ui.item ? ("Selected: " + ui.item.label) : "Nothing selected,
input was " + this.value);
            },
            search: function() {
@@ -54,9 +55,6 @@
            },
            open: function() {
                $(this).removeClass("loading");
-            },
-            change: function() {
-                $(this).removeClass("loading");
            }
        }).focus();
    });