aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.autocomplete.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-05-10 12:57:41 -0400
committerScott González <scott.gonzalez@gmail.com>2012-05-10 12:57:41 -0400
commitab4d8b748d26df79f7e9cf32a5f80d07c05f790b (patch)
tree8307afdc1246aef521bae8649b322761144f12f8 /ui/jquery.ui.autocomplete.js
parenta15d40eb5fae1e13f9f2cc1f6e05e880eb47e23b (diff)
downloadjquery-ui-ab4d8b748d26df79f7e9cf32a5f80d07c05f790b.tar.gz
jquery-ui-ab4d8b748d26df79f7e9cf32a5f80d07c05f790b.zip
Autocomplete: Fixed context for handling async focus in IE; makes change event work properly in IE again.
Diffstat (limited to 'ui/jquery.ui.autocomplete.js')
-rw-r--r--ui/jquery.ui.autocomplete.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/jquery.ui.autocomplete.js b/ui/jquery.ui.autocomplete.js
index a5d832f0a..fab9691a3 100644
--- a/ui/jquery.ui.autocomplete.js
+++ b/ui/jquery.ui.autocomplete.js
@@ -247,10 +247,10 @@ $.widget( "ui.autocomplete", {
// #6109 - IE triggers two focus events and the second
// is asynchronous, so we need to reset the previous
// term synchronously and asynchronously :-(
- setTimeout(function() {
+ this._delay(function() {
this.previous = previous;
this.selectedItem = item;
- }, 1);
+ });
}
if ( false !== this._trigger( "select", event, { item: item } ) ) {