Changes between Version 46 and Version 47 of DeveloperGuidelines/CodeConventions


Ignore:
Timestamp:
08/09/14 18:04:23 (10 years ago)
Author:
Fran Boon
Comment:

JS notes inc avoid ternary operator

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines/CodeConventions

    v46 v47  
    172172== !JavaScript ==
    173173
    174  * http://javascript.crockford.com/code.html
     174* Use ' not " where possible
     175* Terminate all appropriate lines with ; (minifies better)
     176* Take care to not have a trailing comma in arrays (IE8 and lower barf and hence so does Closure)
     177* Avoid use of the ternary operator (many users unfamiliar with this and it has 2 statements in 1 lines which makes debugging harder)
     178
     179* http://javascript.crockford.com/code.html
    175180
    176181== HTML ==