1 | Index: //wafile02/UserHome/skoon/Aptana/Workspace/JQuery Trunk/plugins/autocomplete/jquery.autocomplete.js |
---|
2 | =================================================================== |
---|
3 | --- //wafile02/UserHome/skoon/Aptana/Workspace/JQuery Trunk/plugins/autocomplete/jquery.autocomplete.js (revision 5838) |
---|
4 | +++ //wafile02/UserHome/skoon/Aptana/Workspace/JQuery Trunk/plugins/autocomplete/jquery.autocomplete.js (working copy) |
---|
5 | @@ -234,15 +234,18 @@ |
---|
6 | previousValue = currentValue; |
---|
7 | |
---|
8 | currentValue = lastWord(currentValue); |
---|
9 | - if ( currentValue.length >= options.minChars) { |
---|
10 | - $input.addClass(options.loadingClass); |
---|
11 | - if (!options.matchCase) |
---|
12 | - currentValue = currentValue.toLowerCase(); |
---|
13 | - request(currentValue, receiveData, hideResultsNow); |
---|
14 | - } else { |
---|
15 | - stopLoading(); |
---|
16 | - select.hide(); |
---|
17 | - } |
---|
18 | + if (currentValue) { |
---|
19 | + if (currentValue.length >= options.minChars) { |
---|
20 | + $input.addClass(options.loadingClass); |
---|
21 | + if (!options.matchCase) |
---|
22 | + currentValue = currentValue.toLowerCase(); |
---|
23 | + request(currentValue, receiveData, hideResultsNow); |
---|
24 | + } |
---|
25 | + else { |
---|
26 | + stopLoading(); |
---|
27 | + select.hide(); |
---|
28 | + } |
---|
29 | + }; |
---|
30 | }; |
---|
31 | |
---|
32 | function trimWords(value) { |
---|