We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cf893a commit 1a5b163Copy full SHA for 1a5b163
src/override.js
@@ -31,12 +31,10 @@ export default function (Vue) {
31
32
const destroy = Vue.prototype._destroy
33
Vue.prototype._destroy = function () {
34
- if (!this._isBeingDestroyed) {
35
- if (this.$router) {
36
- this.$router._children.$remove(this)
37
- }
38
- destroy.apply(this, arguments)
+ if (!this._isBeingDestroyed && this.$router) {
+ this.$router._children.$remove(this)
39
}
+ destroy.apply(this, arguments)
40
41
42
// 1.0 only: enable route mixins
0 commit comments