(vm)
| 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) { |
no test coverage detected