3 ms·
if ( !b ) for ( var j in a ) this.style[j] = a[j]; else this.style[a] = b; I really dis-liked having unnecessary braces. This… unfortunate… s
by seanalltogether 12y ago
if ( !b )
for ( var j in a )
this.style[j] = a[j];
else
this.style[a] = b;
I really dis-liked having unnecessary braces. This… unfortunate… style preference plagued us for quite a while and caused all sorts of avoidable logic errors.
I really wish this kind of coding was removed completely from some languages.