Autocomplete: Add removal TODOs for #7810

This commit is contained in:
Jörn Zaefferer 2012-03-01 14:40:23 +01:00
parent 1b80154832
commit d901cd4160

View File

@ -225,7 +225,8 @@ $.widget( "ui.autocomplete", {
// custom key handling for now // custom key handling for now
input: $(), input: $(),
focus: function( event, ui ) { 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" ); var item = ui.item.data( "ui-autocomplete-item" ) || ui.item.data( "item.autocomplete" );
if ( false !== self._trigger( "focus", event, { item: item } ) ) { 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 // 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 ) { 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" ); var item = ui.item.data( "ui-autocomplete-item" ) || ui.item.data( "item.autocomplete" );
previous = self.previous; previous = self.previous;