aboutsummaryrefslogtreecommitdiff
path: root/documentation
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-11-01 19:36:27 -0400
committercash <cash.costello@gmail.com>2011-11-01 19:36:27 -0400
commit5c0bd8a19a294f178ddd6607dd3f624ca34fa5b7 (patch)
treebd7fdc64419d657c24dd10e8301d3347064d1fcf /documentation
parentdb5cac403c21cc05fa2e34d69c75d1cef583766a (diff)
downloadelgg-5c0bd8a19a294f178ddd6607dd3f624ca34fa5b7.tar.gz
elgg-5c0bd8a19a294f178ddd6607dd3f624ca34fa5b7.tar.bz2
added semi-colons after function expressions
Diffstat (limited to 'documentation')
-rw-r--r--documentation/coding_standards/javascript_coding_standards.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/documentation/coding_standards/javascript_coding_standards.txt b/documentation/coding_standards/javascript_coding_standards.txt
index 7d3b842ec..9939e80ab 100644
--- a/documentation/coding_standards/javascript_coding_standards.txt
+++ b/documentation/coding_standards/javascript_coding_standards.txt
@@ -1,2 +1,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');
+ };
+