Skip to content

Commit 955f377

Browse files
committed
super -> this
1 parent afd230f commit 955f377

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/history/abstract.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ export class AbstractHistory extends History {
1414
}
1515

1616
push (location: RawLocation) {
17-
super.transitionTo(location, route => {
17+
this.transitionTo(location, route => {
1818
this.stack = this.stack.slice(0, this.index + 1).concat(route)
1919
this.index++
2020
})
2121
}
2222

2323
replace (location: RawLocation) {
24-
super.transitionTo(location, route => {
24+
this.transitionTo(location, route => {
2525
this.stack = this.stack.slice(0, this.index).concat(route)
2626
})
2727
}

src/history/hash.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ export class HashHistory extends History {
4242
}
4343

4444
push (location: RawLocation) {
45-
super.transitionTo(location, route => {
45+
this.transitionTo(location, route => {
4646
pushHash(route.fullPath)
4747
})
4848
}
4949

5050
replace (location: RawLocation) {
51-
super.transitionTo(location, route => {
51+
this.transitionTo(location, route => {
5252
replaceHash(route.fullPath)
5353
})
5454
}

0 commit comments

Comments
 (0)