aboutsummaryrefslogtreecommitdiffstats
path: root/demos/autocomplete
diff options
context:
space:
mode:
authorCorey Frang <gnarf@gnarf.net>2013-01-30 08:30:35 -0600
committerJörn Zaefferer <joern.zaefferer@gmail.com>2013-03-19 16:08:00 +0100
commit38c7b1ca814c59c48522cda6cfdf054c61773959 (patch)
tree1222eda4bc59f28d27a1c90239cdfd44fc06f688 /demos/autocomplete
parent36cb6f264dbe6b155f8fd97b0ee7615a0f1adedb (diff)
downloadjquery-ui-38c7b1ca814c59c48522cda6cfdf054c61773959.tar.gz
jquery-ui-38c7b1ca814c59c48522cda6cfdf054c61773959.zip
Demos: Updating to use instance method on bridge
Diffstat (limited to 'demos/autocomplete')
-rw-r--r--demos/autocomplete/combobox.html2
-rw-r--r--demos/autocomplete/custom-data.html2
-rw-r--r--demos/autocomplete/multiple-remote.html2
-rw-r--r--demos/autocomplete/multiple.html2
4 files changed, 4 insertions, 4 deletions
diff --git a/demos/autocomplete/combobox.html b/demos/autocomplete/combobox.html
index 5c74317e2..22f34aa17 100644
--- a/demos/autocomplete/combobox.html
+++ b/demos/autocomplete/combobox.html
@@ -154,7 +154,7 @@
this._delay(function() {
this.input.tooltip( "close" ).attr( "title", "" );
}, 2500 );
- this.input.data( "ui-autocomplete" ).term = "";
+ this.input.autocomplete( "instance" ).term = "";
},
_destroy: function() {
diff --git a/demos/autocomplete/custom-data.html b/demos/autocomplete/custom-data.html
index 4e518db4d..32e6a9ad3 100644
--- a/demos/autocomplete/custom-data.html
+++ b/demos/autocomplete/custom-data.html
@@ -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 );
diff --git a/demos/autocomplete/multiple-remote.html b/demos/autocomplete/multiple-remote.html
index ed275628a..c97b3a904 100644
--- a/demos/autocomplete/multiple-remote.html
+++ b/demos/autocomplete/multiple-remote.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( "ui-autocomplete" ).menu.active ) {
+ $( this ).autocomplete( "instance" ).menu.active ) {
event.preventDefault();
}
})
diff --git a/demos/autocomplete/multiple.html b/demos/autocomplete/multiple.html
index 68ae3d6a0..909432277 100644
--- a/demos/autocomplete/multiple.html
+++ b/demos/autocomplete/multiple.html
@@ -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();
}
})