incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Cordova Wiki] Update of "StyleGuide" by brianleroux
Date Tue, 31 Jan 2012 04:50:27 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Cordova Wiki" for change notification.

The "StyleGuide" page has been changed by brianleroux:
http://wiki.apache.org/cordova/StyleGuide?action=diff&rev1=9&rev2=10

    * define variables at the top of methods; they'll be hoisted there anyhow
    * semicolons are unneccessary visual entropy, however, you must use them immediately before
an opening parenthesis, square bracket or any statement which begins with an arithmetic operator
token {{{ /, +, or - }}}
  
+ {{{
+ var foo = { "bar":1
+ 	  , "baz":2
+           }
+ 
+ var arr = [ 1
+           , 2
+           , 3
+           ]
+ 
+ var my = 1
+ ,   little = 2
+ ,   pony = 3
+ 
+ }}}
+ 
  == CoffeeScript ==
  
    * indent four spaces; note that this does not seem to be defacto standard for !CoffeeScript,
yet

Mime
View raw message