<html><head><style type='text/css'>p { margin: 0; }</style><style type='text/css'>body { font-family: 'Times New Roman'; font-size: 12pt; color: #000000}</style></head><body>I'd rather use jQuery's standards as a foundation rather than Drupal's PHP ones, unless we have a good reason to do otherwise.<br><br>----- "Stella Power" <stella@stellapower.net> wrote:
<br>&gt; <link href="/zimbra/css/msgview.css?v=080321143141" rel="stylesheet">Heya,<br>&gt; More and more contrib modules are including JavaScript files, so I want to add the ability to review JavaScript files to the <a href="http://drupal.org/project/coder" rel="nofollow" target="_blank">Coder</a> module.  However, step 1 is we need to agree on what coding standards we should be using for JavaScript.<br>&gt; 
<br>&gt; At present we have the <a href="http://drupal.org/node/172169" rel="nofollow" target="_blank">Coding standards for JS files</a> doc which has one or two ideas but isn't complete.  We also have the main <a href="http://drupal.org/coding-standards" rel="nofollow" target="_blank">Coding Standards</a>
doc, and while most are transferable to JavaScript, not all are. So I've put some suggestions together at <a href="http://drupal.org/node/260140" target="_blank">http://drupal.org/node/260140</a>&nbsp; A fair few of them come from the standards used by JSLint so there shouldn't be many surprises.&nbsp; I'd really appreciate a discussion/debate on this and hopefully we can agree on the coding standards we want to use.<br>&gt; 
<br>&gt; Cheers,<br>&gt; Stella<br>&gt; 
</stella@stellapower.net></body></html>