MCPcopy
hub / github.com/scutan90/DeepLearning-500-questions / renderNameLink

Function renderNameLink

docsify.js:4199–4215  ·  view source on GitHub ↗
(vm)

Source from the content-addressed store, hash-verified

4197 }
4198
4199 function renderNameLink(vm) {
4200 var el = getNode('.app-name-link');
4201 var nameLink = vm.config.nameLink;
4202 var path = vm.route.path;
4203
4204 if (!el) {
4205 return
4206 }
4207
4208 if (isPrimitive(vm.config.nameLink)) {
4209 el.setAttribute('href', nameLink);
4210 } else if (typeof nameLink === 'object') {
4211 var match = Object.keys(nameLink).filter(function (key) { return path.indexOf(key) > -1; })[0];
4212
4213 el.setAttribute('href', nameLink[match]);
4214 }
4215 }
4216
4217 function renderMixin(proto) {
4218 proto._renderTo = function (el, content, replace) {

Callers 1

renderMixinFunction · 0.85

Calls 2

getNodeFunction · 0.85
isPrimitiveFunction · 0.85

Tested by

no test coverage detected