Skip to content
Permalink
Browse files

Autocomplete: Add removal TODOs for #7810

  • Loading branch information
jzaefferer committed Mar 1, 2012
1 parent 1b80154 commit d901cd416069c153fba627ee9ec6daad2a4f67aa
Showing with 4 additions and 2 deletions.
  1. +4 −2 ui/jquery.ui.autocomplete.js
@@ -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;

0 comments on commit d901cd4

Please sign in to comment.
You can’t perform that action at this time.