From 0e1aa9c411cc8f8aefc21b13f4581069ab53689b Mon Sep 17 00:00:00 2001 From: Yahya Izhar Date: Wed, 9 Mar 2022 17:12:24 +0500 Subject: [PATCH] Fixed wrong function calling in Bloodhound Docs Search method is calling .get() instead of .search() https://github.com/twitter/typeahead.js/blob/master/doc/bloodhound.md#bloodhoundsearchquery-sync-async --- doc/bloodhound.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/bloodhound.md b/doc/bloodhound.md index ebb4df6d..879aaceb 100644 --- a/doc/bloodhound.md +++ b/doc/bloodhound.md @@ -136,7 +136,7 @@ contain at least `sufficient` number of datums, `remote` data will be requested and then passed to the `async` callback. ```javascript -bloodhound.get(myQuery, sync, async); +bloodhound.search(myQuery, sync, async); function sync(datums) { console.log('datums from `local`, `prefetch`, and `#add`');