[Proto-Scripty] class is a reserved identifier. What is wrong?

2012-02-20 Thread Alexey Stepanov
This my script, when event is on exit from onClick i got message class is a reserved identifier class= CheckBoxSlider = Class.create({ initialize: function (checkbox, block) { this.checkbox= $(checkbox); this.block=$(block);

[Proto-Scripty] Re: class is a reserved identifier. What is wrong?

2012-02-20 Thread T.J. Crowder
Hi, The problem must be in code you haven't quoted. Use your editor to do a case-sensitive search for class (in all lower case), it's a reserved (but currently unused) word in JavaScript. Note that your quoted code uses Class (with an initial capital letter), which is fine. HTH, -- T.J. Crowder