File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ The standard jquery.autocomplete.js file is around 2.7KB when minified via Closu
29
29
Useful when for example you need to fill list of coma separated values.
30
30
* ` zIndex ` : 'z-index' for suggestions container. Default: ` 9999 ` .
31
31
* ` type ` : Ajax request type to get suggestions. Default: ` GET ` .
32
- * ` noCache ` : Boolean value indicating whether to cache suggestion results. Default ` true ` .
32
+ * ` noCache ` : Boolean value indicating whether to cache suggestion results. Default ` false ` .
33
33
* ` onSearchStart ` : ` function (query) {} ` called before ajax request. ` this ` is bound to input element.
34
34
* ` onSearchComplete ` : ` function (query) {} ` called after ajax response is processed. ` this ` is bound to input element.
35
35
* ` tabDisabled ` : Default ` false ` . Set to true to leave the cursor in the input field after the user tabs to select a suggestion.
Original file line number Diff line number Diff line change 226
226
this . badQueries = [ ] ;
227
227
} ,
228
228
229
+ clear : function ( ) {
230
+ this . clearCache ( ) ;
231
+ this . currentValue = null ;
232
+ this . suggestions = [ ] ;
233
+ } ,
234
+
229
235
disable : function ( ) {
230
236
this . disabled = true ;
231
237
} ,
632
638
}
633
639
} ) ;
634
640
} ;
635
- } ) ) ;
641
+ } ) ) ;
You can’t perform that action at this time.
0 commit comments