]> source.dussan.org Git - jquery-ui.git/commitdiff
Autocomplete: Add removal TODOs for #7810
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Thu, 1 Mar 2012 13:40:23 +0000 (14:40 +0100)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Thu, 1 Mar 2012 13:40:23 +0000 (14:40 +0100)
ui/jquery.ui.autocomplete.js

index 83326e27fc8220fa2c9c8de4dadb8ff020c53f23..05a2a28f2ae33eb3c4790dc96b8655de48e54b98 100644 (file)
@@ -225,7 +225,8 @@ $.widget( "ui.autocomplete", {
                                // custom key handling for now
                                input: $(),
                                focus: function( event, ui ) {
-                                       // back compat for _renderItem using item.autocomplete
+                                       // back compat for _renderItem using item.autocomplete, via #7810
+                                       // TODO remove the fallback, see #8156
                                        var item = ui.item.data( "ui-autocomplete-item" ) || ui.item.data( "item.autocomplete" );
                                        if ( false !== self._trigger( "focus", event, { item: item } ) ) {
                                                // use value to match what will end up in the input, if it was a key event
@@ -235,7 +236,8 @@ $.widget( "ui.autocomplete", {
                                        }
                                },
                                select: function( event, ui ) {
-                                       // back compat for _renderItem using item.autocomplete
+                                       // back compat for _renderItem using item.autocomplete, via #7810
+                                       // TODO remove the fallback, see #8156
                                        var item = ui.item.data( "ui-autocomplete-item" ) || ui.item.data( "item.autocomplete" );
                                                previous = self.previous;