I am trying to get this code to work, but, no luck till now:
==
var myArray = Class.create(Array, {
initialize: function($super, obj){
for(var i=0; i<obj.length; i++){
var tmp = obj[i];
//do stuff to tmp
$super.push(tmp);
}
}
==
this is the error:
==
parent.subclasses is undefined
parent.subclasses.push(klass);
==
can anybody help me?
Thanks,
Omar
--
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en.