cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antonio Gallardo" <>
Subject Re: [CForms] Events in Javascript with Semicolon missing is OK?
Date Sun, 01 Feb 2004 04:54:23 GMT
Hi Tim:

You are totally right! Sorry for the noise.

I am looking a book about javascript and there is the same as you explained.

However it is a good practice to end every statement with a semicolon to
make the script more readable. I already got this rule and forget about
the optional usage of semicolons at all.

Best Regards,

Antonio Gallardo

Tim Larson dijo:
> On Sat, Jan 31, 2004 at 06:30:50PM -0600, Antonio Gallardo wrote:
>> We are using some events in CForms and write them directly in the CForm
>> definition file. The problem is we noted sometimes it is no necesary to
>> write the ending semicolon ";" at the end of the instructions and the
>> cform works fine. Example:
> According to this link semicolons are not usually required in
> javascript unless you are putting more than one statement on
> a line.
> This link clarifies with several cases where a semicolon should
> be included anyway to ensure proper interpretation of your code.
> --Tim Larson

View raw message