Firefox/Windows 8 Metro Style Guides: Difference between revisions

Jump to navigation Jump to search
→‎JS: no space before :
(→‎JS: no space before :)
Line 34: Line 34:
* Consistency is king, and supersedes any particular rule.
* Consistency is king, and supersedes any particular rule.
== JS ==
== JS ==
* Coding Style exceptions:
* Coding Style exceptions/additions:
** Put the opening brace on the same line as the "function" keyword (rather than on a separate line by itself).
** Put the opening brace on the same line as the "function" keyword (rather than on a separate line by itself).
** No space before ":" in object literals.
* https://developer.mozilla.org/en-US/docs/JavaScript_Tips
* https://developer.mozilla.org/en-US/docs/JavaScript_Tips


canmove, Confirmed users
1,584

edits

Navigation menu