[Cosmo-dev] Cosmo JS styleguide

Matthew Eernisse mde at osafoundation.org
Mon Nov 13 16:30:52 PST 2006


Now that we're on the same page on where and how much we're planning to 
use Dojo widgets, I was looking through some of the widget code that 
Travis wrote.

Looks like he was unaware that we have this:

http://wiki.osafoundation.org/bin/view/Projects/JavaScriptStyleguide

Apologies to you Travis for not letting you know about it sooner. It 
only recently moved to its new home in the Cosmo docs, so it was not 
easy or obvious to find.

I just updated it to include object literals, e.g.:

var thingie = { propA: 'This thing', propB: 'That thing' };

All code has warts, but please have a look at the guide and if you're 
working in JavaScript, clean up the style stuff. Note that we use 
spaces, not tabs. :)

Thanks.


Matthew




More information about the cosmo-dev mailing list