beforeRetrieve: function(queryString){ return string; }
Custom function that is run before the AJAX request is made, or the local object is searched. You need to return a string.
queryString: the current text entered in the input.
Fixed by doing
beforeRetrieve: function(queryString){
// console.log("foo"); my stuff here..
return queryString;
},
throws an error?
RTFM'd...
beforeRetrieve: function(queryString){ return string; } Custom function that is run before the AJAX request is made, or the local object is searched. You need to return a string. queryString: the current text entered in the input.
Fixed by doing