this._delay(function() {
this.input.tooltip( "close" ).attr( "title", "" );
}, 2500 );
- this.input.data( "ui-autocomplete" ).term = "";
+ this.input.autocomplete( "instance" ).term = "";
},
_destroy: function() {
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 );
// 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();
}
})
// 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();
}
})
}
});
$( "#destroy" ).click(function() {
- if ( spinner.data( "ui-spinner" ) ) {
+ if ( spinner.spinner( "instance" ) ) {
spinner.spinner( "destroy" );
} else {
spinner.spinner();