Skip to main content
 

Can someone point me to the javascript readability rule that requires that periods go on the previous line for chained call?

someLongAssIdentifier.
foo();

vs

someLongAssIdentifier
.foo();

I keep doing the latter and I'm hoping knowing the rational reason _why_ will help me get out of this habit.

(And I'm secretly hoping this is some ancient IE6ism that we can banish...)