You're going about it the wrong way. Array itself is a function (a
constructor, to be exact).

To inherit from Array you can do:

var MyArrayClass = Class.create(new Array(), {
   initialize: function() {}

a = new MyArrayClass();

"a" will effictively have all the methods and properties from the
Array class, indexing (a[0]) included.

The only problem with this notation is that $super is undefined for
some reason. I haven't looked too much into it though, so with some
work I'm sure you can find a solution.

You received this message because you are subscribed to the Google Groups 
"Prototype &" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to