Advertisement
Guest User

Untitled

a guest
Oct 21st, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. push (location: RawLocation, onComplete?: Function, onAbort?: Function) {
  2. + this.history.push(location, onComplete, onAbort)
  3. - // $flow-disable-line
  4. - if (!onComplete && !onAbort && typeof Promise !== 'undefined') {
  5. - return new Promise((resolve, reject) => {
  6. - this.history.push(location, resolve, reject)
  7. - })
  8. - } else {
  9. - this.history.push(location, onComplete, onAbort)
  10. - }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement