Skip to content
Permalink
Browse files

Autocomplete: Fix .data() references in demos. Fixes #9029 - Autocomp…

…lete: Multiple demo has errors.
  • Loading branch information
scottgonzalez committed Jan 30, 2013
1 parent 2ca4d17 commit ceebe07e2c99190030c16b031813ae660d9283d1
Showing with 2 additions and 2 deletions.
  1. +1 −1 demos/autocomplete/multiple-remote.html
  2. +1 −1 demos/autocomplete/multiple.html
@@ -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();
}
})
@@ -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();
}
})

0 comments on commit ceebe07

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