hi all,
i have a problem with some javascript i've created. im trying to create a new class but on the second line (after i created the class) firebug throws me a 'fatal error: missing : after property id' (wth, how unclear can you be???). i've searched google te find out whats causing it but all things i found were irrelevant to my problem.
here is the code where the error occurs.
i've also tried to do it with 'var' instead of 'private' and i also tried 'var myclass = {' but it didnt work either.
i hope someone can help me out.
i have a problem with some javascript i've created. im trying to create a new class but on the second line (after i created the class) firebug throws me a 'fatal error: missing : after property id' (wth, how unclear can you be???). i've searched google te find out whats causing it but all things i found were irrelevant to my problem.
here is the code where the error occurs.
Code:
myclass = Class.create({
private demo1 = ""; //ERROR
private demo2 = "";
private demo3 = "";
...
})
i hope someone can help me out.
Comment