if (!isActive) {
$parent.toggleClass('open');
} // best
Damian Conway of Perl fame wrote an excellent style guide for C in the early/mid 90s which I'm pretty sure explained why (I can't find my copy):Programmer A:
if (!isActive) $parent.toggleClass('open');
Programmer B: if (!isActive)
$parent.toggleClass('open');
doSomethingElse();
Oh dear.