8000 fix compat with Vue <1.0.9 · vuejs/vue-router@c5dfe99 · GitHub
[go: up one dir, main page]

Skip to content

Commit c5dfe99

Browse files
committed
fix compat with Vue <1.0.9
1 parent 07fd073 commit c5dfe99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/directives/link.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ export default function (Vue) {
99

1010
const {
1111
bind,
12-
getAttr,
1312
isObject,
1413
addClass,
1514
removeClass
@@ -61,8 +60,9 @@ export default function (Vue) {
6160
// update things when the route changes
6261
this.unwatch = vm.$watch('$route', bind(this.onRouteUpdate, this))
6362
// check v-link-active ids
64-
const activeIds = getAttr(this.el, LINK_UPDATE)
63+
const activeIds = this.el.getAttribute(LINK_UPDATE)
6564
if (activeIds) {
65+
this.el.removeAttribute(LINK_UPDATE)
6666
this.activeIds = activeIds.split(',')
6767
}
6868
// no need to handle click if link expects to be opened

0 commit comments

Comments
 (0)
0