correct linter problems

This commit is contained in:
Astra 2018-06-07 05:08:39 -04:00
parent 92a8ca0011
commit f49229974a

View file

@ -176,7 +176,6 @@ const PostStatusForm = {
this.caret = selectionStart
},
postStatus (newStatus) {
console.log(newStatus);
if (this.posting) { return }
if (this.submitDisabled) { return }
@ -208,7 +207,7 @@ const PostStatusForm = {
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
}
}