From cedeba580ee3846230161408f603f72fe169dadf Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 18 Feb 2017 13:26:27 +0900 Subject: [PATCH] Improve readability --- src/web/app/mobile/mixins.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/web/app/mobile/mixins.js b/src/web/app/mobile/mixins.js index be0e0d155..98601a107 100644 --- a/src/web/app/mobile/mixins.js +++ b/src/web/app/mobile/mixins.js @@ -11,10 +11,12 @@ module.exports = me => { openPostForm: opts => { const app = document.getElementById('app'); app.style.display = 'none'; - const form = riot.mount(document.body.appendChild(document.createElement('mk-post-form')), opts)[0]; + 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);