Hi all,

I have a class defined like this

var C = Class.create({
   initialize:function() {
     alert("ext: " + arguments.length)
      this.b(arguments);
   },
    b:function() {
      alert("int: " + arguments.length)
    }
});

when I create  the class using :

c= new C("aa","aa","aa","aa")

I have the arguments count is 4 in the initialize part and it's 1 in
the b function. Output is

ext: 4
int: 1

Is there a way to pass the arguments from ext to int in a consistent
way ?

--

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 
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