Autocomplete: Fix .data() references in demos. Fixes #9029 - Autocomplete: Multiple demo has errors.

This commit is contained in:
Scott González 2013-01-30 08:36:13 -05:00
parent 2ca4d17982
commit ceebe07e2c
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@
// don't navigate away from the field on tab when selecting an item
.bind( "keydown", function( event ) {
if ( event.keyCode === $.ui.keyCode.TAB &&
$( this ).data( "autocomplete" ).menu.active ) {
$( this ).data( "ui-autocomplete" ).menu.active ) {
event.preventDefault();
}
})

View File

@ -48,7 +48,7 @@
// don't navigate away from the field on tab when selecting an item
.bind( "keydown", function( event ) {
if ( event.keyCode === $.ui.keyCode.TAB &&
$( this ).data( "autocomplete" ).menu.active ) {
$( this ).data( "ui-autocomplete" ).menu.active ) {
event.preventDefault();
}
})