MCPcopy Index your code
hub / github.com/tinyplex/tinybase / moveHover

Function moveHover

site/js/common/search.ts:212–225  ·  view source on GitHub ↗
(current: any, next: any)

Source from the content-addressed store, hash-verified

210
211// Move hover class through the results
212const moveHover = (current: any, next: any) => {
213 if (current != next) {
214 if (current) {
215 delClass(current, 'hover');
216 }
217 if (next) {
218 addClass(next, 'hover');
219 next.scrollIntoView({
220 block: 'nearest',
221 inline: 'nearest',
222 });
223 }
224 }
225};
226
227// Tokenize a string into words, optionally reversing the order
228const tokenize = (string: string, tokens: Set<string>, reverse?: boolean) => {

Callers 1

bindKeyboardFunction · 0.85

Calls 2

delClassFunction · 0.90
addClassFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…