Y
Hacker News
new
|
ask
|
show
|
jobs
by
vbezhenar
4081 days ago
$('.something').toggleClass('collapsed') .click(somethingClicked);
This simple and readable statement will turn into a lot of lines with DOM API.