bump: 3.7.3

This commit is contained in:
qingwei.li 2017-05-22 20:56:25 +08:00
commit 6d244139dd
No known key found for this signature in database
GPG key ID: B6DDC2F7AE80B2F4
5 changed files with 9 additions and 6 deletions

View file

@ -3229,7 +3229,7 @@ function renderNameLink (vm) {
if (isPrimitive(vm.config.nameLink)) {
el.setAttribute('href', nameLink);
} else if (typeof nameLink === 'object') {
var match = Object.keys(nameLink).find(function (key) { return path.indexOf(key) > -1; });
var match = Object.keys(nameLink).filter(function (key) { return path.indexOf(key) > -1; })[0];
el.setAttribute('href', nameLink[match]);
}