diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-09-15 21:53:04 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-09-15 21:53:04 +0900 |
| commit | 25b0a93acdec893ebd4f32b51ad0b7bc5df1350a (patch) | |
| tree | b016055e4ca38b27e300b0e6a295d787c7563067 /src/client/app/init.ts | |
| parent | Resolve #2066 (diff) | |
| download | misskey-25b0a93acdec893ebd4f32b51ad0b7bc5df1350a.tar.gz misskey-25b0a93acdec893ebd4f32b51ad0b7bc5df1350a.tar.bz2 misskey-25b0a93acdec893ebd4f32b51ad0b7bc5df1350a.zip | |
:v:
Diffstat (limited to 'src/client/app/init.ts')
| -rw-r--r-- | src/client/app/init.ts | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/client/app/init.ts b/src/client/app/init.ts index dfc3a819b8..db3852da60 100644 --- a/src/client/app/init.ts +++ b/src/client/app/init.ts @@ -31,9 +31,13 @@ require('./common/views/widgets'); require('./common/views/filters'); Vue.mixin({ - destroyed(this: any) { - if (this.$el.parentNode) { - this.$el.parentNode.removeChild(this.$el); + methods: { + destroyDom() { + this.$destroy(); + + if (this.$el.parentNode) { + this.$el.parentNode.removeChild(this.$el); + } } } }); |