summaryrefslogtreecommitdiff
path: root/src/client/app/init.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-09-15 21:53:04 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-09-15 21:53:04 +0900
commit25b0a93acdec893ebd4f32b51ad0b7bc5df1350a (patch)
treeb016055e4ca38b27e300b0e6a295d787c7563067 /src/client/app/init.ts
parentResolve #2066 (diff)
downloadmisskey-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.ts10
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);
+ }
}
}
});