aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/docs
diff options
context:
space:
mode:
authorCallum Macrae <callum@lynxphp.com>2012-05-03 22:30:22 +0100
committerCallum Macrae <callum@lynxphp.com>2012-05-03 22:30:22 +0100
commitee2e2cb2c36d7abf7571d2593061eedfdf5edb8f (patch)
tree10b02c8b5c6d4cf537736d97021d0c933df046f0 /phpBB/docs
parent3978e2620ea3ad50f80bc273542ff9dc830743fd (diff)
downloadforums-ee2e2cb2c36d7abf7571d2593061eedfdf5edb8f.tar
forums-ee2e2cb2c36d7abf7571d2593061eedfdf5edb8f.tar.gz
forums-ee2e2cb2c36d7abf7571d2593061eedfdf5edb8f.tar.bz2
forums-ee2e2cb2c36d7abf7571d2593061eedfdf5edb8f.tar.xz
forums-ee2e2cb2c36d7abf7571d2593061eedfdf5edb8f.zip
[ticket/10855] Added array trailing commas info in js to guidelines.
PHPBB3-10855
Diffstat (limited to 'phpBB/docs')
-rw-r--r--phpBB/docs/coding-guidelines.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/docs/coding-guidelines.html b/phpBB/docs/coding-guidelines.html
index fbec59a6ff..be78ad0b3b 100644
--- a/phpBB/docs/coding-guidelines.html
+++ b/phpBB/docs/coding-guidelines.html
@@ -526,7 +526,7 @@ $post_url = "{$phpbb_root_path}posting.$phpEx?mode=$mode&amp;amp;start=$start";
<p>In SQL statements mixing single and double quotes is partly allowed (following the guidelines listed here about SQL formatting), else one should try to only use one method - mostly single quotes.</p>
<h4>Commas after every array element:</h4>
- <p>If an array is defined with each element on its own line, you still have to modify the previous line to add a comma when appending a new element. PHP allows for trailing (useless) commas in array definitions. These should always be used so each element including the comma can be appended with a single line</p>
+ <p>If an array is defined with each element on its own line, you still have to modify the previous line to add a comma when appending a new element. PHP allows for trailing (useless) commas in array definitions. These should always be used so each element including the comma can be appended with a single line. In JavaScript, you should not use the trailing comma, as IE doesn't like it.</p>
<p class="bad">// wrong</p>
<div class="codebox"><pre>