devbridge/jQuery-Autocomplete — pull request #121 by Monnoroch (2013-11-14 07:42:57+00:00)
Title: Added canUseCache: function option.

Check if this query can be autocompleted from cache, without ajax request.

Usage (directory autocomplete, do ajaxs only if "/" has been typed):
$(selector).autocomplete({
...
canUseCache: function(query) {
return query.length == 0 || query[query.length - 1] != "/";
},
...
});