File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -14,14 +14,14 @@ export class AbstractHistory extends History {
14
14
}
15
15
16
16
push ( location : RawLocation ) {
17
- super . transitionTo ( location , route => {
17
+ this . transitionTo ( location , route => {
18
18
this . stack = this . stack . slice ( 0 , this . index + 1 ) . concat ( route )
19
19
this . index ++
20
20
} )
21
21
}
22
22
23
23
replace ( location : RawLocation ) {
24
- super . transitionTo ( location , route => {
24
+ this . transitionTo ( location , route => {
25
25
this . stack = this . stack . slice ( 0 , this . index ) . concat ( route )
26
26
} )
27
27
}
Original file line number Diff line number Diff line change @@ -42,13 +42,13 @@ export class HashHistory extends History {
42
42
}
43
43
44
44
push ( location : RawLocation ) {
45
- super . transitionTo ( location , route => {
45
+ this . transitionTo ( location , route => {
46
46
pushHash ( route . fullPath )
47
47
} )
48
48
}
49
49
50
50
replace ( location : RawLocation ) {
51
- super . transitionTo ( location , route => {
51
+ this . transitionTo ( location , route => {
52
52
replaceHash ( route . fullPath )
53
53
} )
54
54
}
You can’t perform that action at this time.
0 commit comments