Fix linting error

"Bad line breaking"??? I'll show you bad line breaking.
Use toggleClass with switch argument