Skip to content

Commit 38c7b1c

Browse files
gnarfjzaefferer
authored andcommitted
Demos: Updating to use instance method on bridge
1 parent 36cb6f2 commit 38c7b1c

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

demos/autocomplete/combobox.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@
154154
this._delay(function() {
155155
this.input.tooltip( "close" ).attr( "title", "" );
156156
}, 2500 );
157-
this.input.data( "ui-autocomplete" ).term = "";
157+
this.input.autocomplete( "instance" ).term = "";
158158
},
159159

160160
_destroy: function() {

demos/autocomplete/custom-data.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
return false;
6767
}
6868
})
69-
.data( "ui-autocomplete" )._renderItem = function( ul, item ) {
69+
.autocomplete( "instance" )._renderItem = function( ul, item ) {
7070
return $( "<li>" )
7171
.append( "<a>" + item.label + "<br>" + item.desc + "</a>" )
7272
.appendTo( ul );

demos/autocomplete/multiple-remote.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
// don't navigate away from the field on tab when selecting an item
3030
.bind( "keydown", function( event ) {
3131
if ( event.keyCode === $.ui.keyCode.TAB &&
32-
$( this ).data( "ui-autocomplete" ).menu.active ) {
32+
$( this ).autocomplete( "instance" ).menu.active ) {
3333
event.preventDefault();
3434
}
3535
})

demos/autocomplete/multiple.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
// don't navigate away from the field on tab when selecting an item
4949
.bind( "keydown", function( event ) {
5050
if ( event.keyCode === $.ui.keyCode.TAB &&
51-
$( this ).data( "ui-autocomplete" ).menu.active ) {
51+
$( this ).autocomplete( "instance" ).menu.active ) {
5252
event.preventDefault();
5353
}
5454
})

demos/spinner/default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
}
2424
});
2525
$( "#destroy" ).click(function() {
26-
if ( spinner.data( "ui-spinner" ) ) {
26+
if ( spinner.spinner( "instance" ) ) {
2727
spinner.spinner( "destroy" );
2828
} else {
2929
spinner.spinner();

0 commit comments

Comments
 (0)