diff options
| author | Astra <dr1ft.ast@gmail.com> | 2018-06-07 05:08:39 -0400 |
|---|---|---|
| committer | Astra <dr1ft.ast@gmail.com> | 2018-06-07 05:08:39 -0400 |
| commit | f49229974a04c440dcb2d9d9b7c89033a1ee5482 (patch) | |
| tree | ed129c32e9027cfa0cde07e8db5846a6866b050f /src | |
| parent | 92a8ca00111b3cd0a5129964c47566a04ab54285 (diff) | |
correct linter problems
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/post_status_form/post_status_form.js | 7 |
1 files 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 } } |
