File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -34,15 +34,6 @@ export default function (Vue) {
34
34
this . router = vm . $route . router
35
35
// update things when the route changes
36
36
this . unwatch = vm . $watch ( '$route' , bind ( this . onRouteUpdate , this ) )
37
- // no need to handle click if link expects to be opened
38
- // in a new window/tab.
39
- /* istanbul ignore if */
40
- if ( this . el . tagName === 'A' &&
41
- this . el . getAttribute ( 'target' ) === '_blank' ) {
42
- return
43
- }
44
- // handle click
45
- this . el . addEventListener ( 'click' , bind ( this . onClick , this ) )
46
37
// check if active classes should be applied to a different element
47
38
this . activeEl = this . el
48
39
var parent = this . el . parentNode
@@ -53,6 +44,15 @@ export default function (Vue) {
53
44
}
54
45
parent = parent . parentNode
55
46
}
47
+ // no need to handle click if link expects to be opened
48
+ // in a new window/tab.
49
+ /* istanbul ignore if */
50
+ if ( this . el . tagName === 'A' &&
51
+ this . el . getAttribute ( 'target' ) === '_blank' ) {
52
+ return
53
+ }
54
+ // handle click
55
+ this . el . addEventListener ( 'click' , bind ( this . onClick , this ) )
56
56
} ,
57
57
58
58
update ( target ) {
You can’t perform that action at this time.
0 commit comments