Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- push (location: RawLocation, onComplete?: Function, onAbort?: Function) {
- + this.history.push(location, onComplete, onAbort)
- - // $flow-disable-line
- - if (!onComplete && !onAbort && typeof Promise !== 'undefined') {
- - return new Promise((resolve, reject) => {
- - this.history.push(location, resolve, reject)
- - })
- - } else {
- - this.history.push(location, onComplete, onAbort)
- - }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement