The problem is that you have a dangling comma at the end of your
object literal (after the definition of the `srotola` function). IE
considers dangling commas fatal parsing errors; most other browsers
have no problem with them. Here's are two examples of dangling commas:

    var obj = {
       alpha: 1,
       beta: 2,  // <== Dangling comma

    var a = [
        "two",   // <== Another dangling comma

For your code to work with IE, you have to be sure there is no comma
after the final item in an object literal or an array literal.

Off-topic, but if you're using Prototype 1.6 or above, you're using
Class.create incorrectly. You don't want to do this:

    var MyClass = Class.create();
    MyClass.prototype = {         // <== Incorrect
        initialize: function() {
            // ...
        // ...


    var MyClass = Class.create({
        initialize: function() {
            // ...
        // ...

The two are not identical, Prototype does things with the prototype
that will be lost if you replace it after Class.create is done.

T.J. Crowder
Independent Software Consultant
tj / crowder software / com

On Aug 18, 4:51 pm, Loris Menghi <loris.men...@gmail.com> wrote:
> The fact remains that IE7 does not instantiate the class

You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to