From 9c4e3142b1ff399fe8b12a38fa5769bc62570197 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=93=E3=81=B4=E3=81=AA=E3=81=9F=E3=81=BF=E3=81=BD?= Date: Fri, 23 Feb 2018 18:42:38 +0900 Subject: [PATCH] Clean up --- src/web/app/mobile/scripts/open-post-form.ts | 15 --------------- src/web/app/mobile/scripts/ui-event.ts | 5 ----- 2 files changed, 20 deletions(-) delete mode 100644 src/web/app/mobile/scripts/open-post-form.ts delete mode 100644 src/web/app/mobile/scripts/ui-event.ts diff --git a/src/web/app/mobile/scripts/open-post-form.ts b/src/web/app/mobile/scripts/open-post-form.ts deleted file mode 100644 index e0fae4d8c..000000000 --- a/src/web/app/mobile/scripts/open-post-form.ts +++ /dev/null @@ -1,15 +0,0 @@ -import * as riot from 'riot'; - -export default opts => { - const app = document.getElementById('app'); - app.style.display = 'none'; - - function recover() { - app.style.display = 'block'; - } - - const form = riot.mount(document.body.appendChild(document.createElement('mk-post-form')), opts)[0]; - form - .on('cancel', recover) - .on('post', recover); -}; diff --git a/src/web/app/mobile/scripts/ui-event.ts b/src/web/app/mobile/scripts/ui-event.ts deleted file mode 100644 index 2e406549a..000000000 --- a/src/web/app/mobile/scripts/ui-event.ts +++ /dev/null @@ -1,5 +0,0 @@ -import * as riot from 'riot'; - -const ev = riot.observable(); - -export default ev;