aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.autocomplete.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-02-11 08:15:24 -0500
committerScott González <scott.gonzalez@gmail.com>2012-02-11 08:15:24 -0500
commit041cb39a6667e3637a40fad6ef952da476f2af97 (patch)
tree3c97cc79c02f1a7a8126763ea3d88c50e2be1c16 /ui/jquery.ui.autocomplete.js
parent2fd2ab23c966c8ddcb6f95eb07dcf38a997c93c7 (diff)
downloadjquery-ui-041cb39a6667e3637a40fad6ef952da476f2af97.tar.gz
jquery-ui-041cb39a6667e3637a40fad6ef952da476f2af97.zip
Autocomplete: Set context for ajax requests instead of relying on default context. Fixes #7490 - Autocomplete fails when context option is set with ajaxSetup.
Diffstat (limited to 'ui/jquery.ui.autocomplete.js')
-rw-r--r--ui/jquery.ui.autocomplete.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/jquery.ui.autocomplete.js b/ui/jquery.ui.autocomplete.js
index c054ba2dd..14e8a2a86 100644
--- a/ui/jquery.ui.autocomplete.js
+++ b/ui/jquery.ui.autocomplete.js
@@ -316,7 +316,9 @@ $.widget( "ui.autocomplete", {
url: url,
data: request,
dataType: "json",
- autocompleteRequest: ++requestIndex,
+ context: {
+ autocompleteRequest: ++requestIndex
+ },
success: function( data, status ) {
if ( this.autocompleteRequest === requestIndex ) {
response( data );