aboutsummaryrefslogtreecommitdiff
path: root/documentation/coding_standards/javascript_coding_standards.txt
blob: 9939e80ab3a5260a8f16ed890894b7278ed09858 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
*** JAVASCRIPT CODING STANDARDS ***

*	Same formatting standards as PHP.

*	All functions should be in the elgg namespace.

*	Function expressions should end with a semi-colon:

	elgg.ui.toggles = function(event) {
		event.preventDefault();
		$(target).slideToggle('medium');
	};