UNPKG

quasar

Version:

Build high-performance VueJS user interfaces (SPA, PWA, SSR, Mobile and Desktop) in record time

25 lines (21 loc) 519 B
import History from '../history.js' export default { methods: { __addHistory () { this.__historyEntry = { condition: () => { return this.hideOnRouteChange === true }, handler: this.hide } History.add(this.__historyEntry) }, __removeHistory () { if (this.__historyEntry !== void 0) { History.remove(this.__historyEntry) this.__historyEntry = void 0 } } }, beforeDestroy () { this.showing === true && this.__removeHistory() } }