MCPcopy Create free account
hub / github.com/frank-lam/fullstack-tutorial / init

Function init

notes/docsify/unpkg/docsify/lib/plugins/search.js:292–300  ·  view source on GitHub ↗
(opts, vm)

Source from the content-addressed store, hash-verified

290}
291
292function init(opts, vm) {
293 var keywords = vm.router.parse().query.s;
294
295 updateOptions(opts);
296 style();
297 tpl(keywords);
298 bindEvents();
299 keywords && setTimeout(function (_) { return doSearch(keywords); }, 500);
300}
301
302function update(opts, vm) {
303 updateOptions(opts);

Callers 1

installFunction · 0.85

Calls 5

updateOptionsFunction · 0.85
styleFunction · 0.85
tplFunction · 0.85
bindEventsFunction · 0.85
doSearchFunction · 0.85

Tested by

no test coverage detected