SHARE
TWEET

Untitled

a guest Oct 21st, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.   }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top