From f49229974a04c440dcb2d9d9b7c89033a1ee5482 Mon Sep 17 00:00:00 2001 From: Astra Date: Thu, 7 Jun 2018 05:08:39 -0400 Subject: [PATCH] correct linter problems --- src/components/post_status_form/post_status_form.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js index cdacfa14..2f40d690 100644 --- a/src/components/post_status_form/post_status_form.js +++ b/src/components/post_status_form/post_status_form.js @@ -176,7 +176,6 @@ const PostStatusForm = { this.caret = selectionStart }, postStatus (newStatus) { - console.log(newStatus); if (this.posting) { return } if (this.submitDisabled) { return } @@ -207,8 +206,8 @@ const PostStatusForm = { let el = this.$el.querySelector('textarea') el.style.height = '16px' this.error = null - - Object.keys(this.vis).forEach(x => this.vis[x].selected = false) + + Object.keys(this.vis).forEach(function (x) { this.vis[x].selected = false }) this.vis.public.selected = true } else { this.error = data.error @@ -264,7 +263,7 @@ const PostStatusForm = { }, changeVis (visibility) { console.log(visibility) - Object.keys(this.vis).forEach(x => this.vis[x].selected = x == visibility) + Object.keys(this.vis).forEach(function (x) { this.vis[x].selected = x === visibility}) this.newStatus.visibility = visibility } }