]> source.dussan.org Git - jquery-ui.git/commitdiff
Autocomplete: Fix .data() references in demos. Fixes #9029 - Autocomplete: Multiple...
authorScott González <scott.gonzalez@gmail.com>
Wed, 30 Jan 2013 13:36:13 +0000 (08:36 -0500)
committerScott González <scott.gonzalez@gmail.com>
Wed, 30 Jan 2013 13:36:41 +0000 (08:36 -0500)
demos/autocomplete/multiple-remote.html
demos/autocomplete/multiple.html

index 4b7a861acd58417f06a1b0f82b34e5afa5b3e701..0f17e091d54f316fcd2d2f6c1e8be61f25b39ce8 100644 (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();
                                }
                        })
index 759ee48f7ead40f84151819467048505eeed96d9..5d6b05c9c42e0b0077866dda60012633aa9e4896 100644 (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();
                                }
                        })