diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-10-25 06:47:19 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-10-25 06:47:19 -0400 |
commit | 9202bb7df57b159003f6a0659cbe9359fdeb8196 (patch) | |
tree | 56fae5ac0b5add19399ae2ec7146649493e49f71 /ui/jquery.ui.autocomplete.js | |
parent | 2582bfab46613da613f1a3354bc733b68a110b95 (diff) | |
download | jquery-ui-9202bb7df57b159003f6a0659cbe9359fdeb8196.tar.gz jquery-ui-9202bb7df57b159003f6a0659cbe9359fdeb8196.zip |
Autocomplete: Removed data fallback for item.autocomplete. Fixes #8156 - Autocomplete: Remove data fallbacks.
Diffstat (limited to 'ui/jquery.ui.autocomplete.js')
-rw-r--r-- | ui/jquery.ui.autocomplete.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/ui/jquery.ui.autocomplete.js b/ui/jquery.ui.autocomplete.js index 2d064834c..327bfa17e 100644 --- a/ui/jquery.ui.autocomplete.js +++ b/ui/jquery.ui.autocomplete.js @@ -237,9 +237,7 @@ $.widget( "ui.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" ); if ( false !== this._trigger( "focus", event, { item: item } ) ) { // use value to match what will end up in the input, if it was a key event if ( event.originalEvent && /^key/.test( event.originalEvent.type ) ) { @@ -255,9 +253,7 @@ $.widget( "ui.autocomplete", { } }, menuselect: function( event, ui ) { - // 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" ), previous = this.previous; // only trigger when focus was lost (click on menu) |