MCPcopy Create free account
hub / github.com/dtmilano/AndroidViewClient / _displayNextItem

Function _displayNextItem

docs/_static/searchtools.js:115–131  ·  view source on GitHub ↗
(
  results,
  resultCount,
  searchTerms
)

Source from the content-addressed store, hash-verified

113 );
114};
115const _displayNextItem = (
116 results,
117 resultCount,
118 searchTerms
119) => {
120 // results left, load the summary and display it
121 // this is intended to be dynamic (don't sub resultsCount)
122 if (results.length) {
123 _displayItem(results.pop(), searchTerms);
124 setTimeout(
125 () => _displayNextItem(results, resultCount, searchTerms),
126 5
127 );
128 }
129 // search finished, update title and status message
130 else _finishSearch(resultCount);
131};
132
133/**
134 * Default splitQuery function. Can be overridden in ``sphinx.search`` with a

Callers 1

searchtools.jsFile · 0.85

Calls 2

_displayItemFunction · 0.85
_finishSearchFunction · 0.85

Tested by

no test coverage detected