]> source.dussan.org Git - jquery-ui.git/commitdiff
Demos: Updating to use instance method on bridge
authorCorey Frang <gnarf@gnarf.net>
Wed, 30 Jan 2013 14:30:35 +0000 (08:30 -0600)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Tue, 19 Mar 2013 15:08:00 +0000 (16:08 +0100)
demos/autocomplete/combobox.html
demos/autocomplete/custom-data.html
demos/autocomplete/multiple-remote.html
demos/autocomplete/multiple.html
demos/spinner/default.html

index 5c74317e283d8ec5344cdc64230a610b941fc7cc..22f34aa17b2a48a70e9d2a0da024e4725f087a5e 100644 (file)
                                this._delay(function() {
                                        this.input.tooltip( "close" ).attr( "title", "" );
                                }, 2500 );
-                               this.input.data( "ui-autocomplete" ).term = "";
+                               this.input.autocomplete( "instance" ).term = "";
                        },
 
                        _destroy: function() {
index 4e518db4da50bc857b4cad629c7c29445edd797d..32e6a9ad382a5110eec6b8c25a3f5274fc28c63a 100644 (file)
@@ -66,7 +66,7 @@
                                return false;
                        }
                })
-               .data( "ui-autocomplete" )._renderItem = function( ul, item ) {
+               .autocomplete( "instance" )._renderItem = function( ul, item ) {
                        return $( "<li>" )
                                .append( "<a>" + item.label + "<br>" + item.desc + "</a>" )
                                .appendTo( ul );
index ed275628a968191f4cec93b023b2c66f29cedcd8..c97b3a90403a68fc91b30a3697205e2a916824f1 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( "ui-autocomplete" ).menu.active ) {
+                                               $( this ).autocomplete( "instance" ).menu.active ) {
                                        event.preventDefault();
                                }
                        })
index 68ae3d6a0eb56f6087e86f11e45e1dfff816bda3..909432277ef2d8e08c3f9b6217a725eca95fd662 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( "ui-autocomplete" ).menu.active ) {
+                                               $( this ).autocomplete( "instance" ).menu.active ) {
                                        event.preventDefault();
                                }
                        })
index 5093e8666c25a35368a734febadbc55ced4c4adf..3d3288807265c8969a4a01468afedf0e1bfb4e55 100644 (file)
@@ -23,7 +23,7 @@
                        }
                });
                $( "#destroy" ).click(function() {
-                       if ( spinner.data( "ui-spinner" ) ) {
+                       if ( spinner.spinner( "instance" ) ) {
                                spinner.spinner( "destroy" );
                        } else {
                                spinner.spinner();