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
2929 Useful when for example you need to fill list of coma separated values.
3030 * ` zIndex ` : 'z-index' for suggestions container. Default: ` 9999 ` .
3131 * ` 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 ` .
3333 * ` onSearchStart ` : ` function (query) {} ` called before ajax request. ` this ` is bound to input element.
3434 * ` onSearchComplete ` : ` function (query) {} ` called after ajax response is processed. ` this ` is bound to input element.
3535 * ` 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 226226 this . badQueries = [ ] ;
227227 } ,
228228
229+ clear : function ( ) {
230+ this . clearCache ( ) ;
231+ this . currentValue = null ;
232+ this . suggestions = [ ] ;
233+ } ,
234+
229235 disable : function ( ) {
230236 this . disabled = true ;
231237 } ,
632638 }
633639 } ) ;
634640 } ;
635- } ) ) ;
641+ } ) ) ;
You can’t perform that action at this time.
0 commit comments