Changes between Version 20 and Version 21 of TracDev/CodingStyle
- Timestamp:
- Jan 14, 2015, 12:28:52 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracDev/CodingStyle
v20 v21 57 57 * Define non-anonymous functions as `function fooBar() {...}` (rather than `var fooBar = function() {...}`) 58 58 * Keep as much as possible private, by defining private functions in an inner scope. Attach functions you want to export to the $ symbol. 59 * Use a "trac-"prefix for all id and class names. (For new names. Changing old names would break customizations.)59 * Use a `trac-` prefix for all id and class names. (For new names. Changing old names would break customizations.) 60 60 * Prefix variables containing a jQuery object with `$`. 61 61