Javascript not working when it has comments

Status
Not open for further replies.
Hey! :D
I have a list plugin with some JS code which is working as expected. The problem is, every time I try to comment the JS code I have ( using JS comment code which is
Code:
//
) is just simply does not work anymore!
Do you have any solution to what may be causing this problem?
Thanks in advance!
 
Yes - line breaks are removed by Fabrik. So:
Code:
var x=1; // comment
var y=2;
becomes:
Code:
var x=1; // comment var y=2;

The solution is to use "/* comment */" instead.
 
Status
Not open for further replies.
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top