MCPcopy Index your code
hub / github.com/docsifyjs/docsify / init

Function init

src/plugins/search/component.js:236–244  ·  view source on GitHub ↗
(opts, vm)

Source from the content-addressed store, hash-verified

234}
235
236export function init(opts, vm) {
237 const keywords = vm.router.parse().query.s;
238
239 updateOptions(opts);
240 style();
241 tpl(keywords);
242 bindEvents();
243 keywords && setTimeout(_ => doSearch(keywords), 500);
244}
245
246export function update(opts, vm) {
247 updateOptions(opts);

Callers

nothing calls this directly

Calls 6

updateOptionsFunction · 0.85
tplFunction · 0.85
bindEventsFunction · 0.85
doSearchFunction · 0.85
styleFunction · 0.70
parseMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…