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 & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to