Skip to content
Permalink
Browse files

Autocomplete: Set context for ajax requests instead of relying on def…

…ault context. Fixes #7490 - Autocomplete fails when context option is set with ajaxSetup.
  • Loading branch information...
scottgonzalez committed Feb 11, 2012
1 parent 2fd2ab2 commit 041cb39a6667e3637a40fad6ef952da476f2af97
Showing with 3 additions and 1 deletion.
  1. +3 −1 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 );

0 comments on commit 041cb39

Please sign in to comment.
You can’t perform that action at this time.