mirror of https://github.com/sveltejs/svelte
if toggle is undefined, `.toggle` will act as a flip flop (wich the name "toggle" should imply) if toggle is true, it will add the class unless it is already contained if toggle is false, it will remove the class unless it is already removed alternatively i'd probably suggest renaming it from toggle_class to something else. a toggle is a state aware flip flop by default. any objections?pull/3189/head
parent
943c04834a
commit
b5b8fb1e3c
Loading…
Reference in new issue