Skip to content

Commit

Permalink
Simplify toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
youngbrioche committed Aug 27, 2019
1 parent 57eaeb4 commit 2502bda
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ export default class CheckToToggle extends HTMLElement {
}

toggle () {
if (this.checkbox.checked) {
this.target.classList.add('hidden')
} else {
this.target.classList.remove('hidden')
}
this.target.classList.toggle('hidden')
}
}

0 comments on commit 2502bda

Please sign in to comment.