Le vendredi 18 décembre 2009 13:16, Davide a écrit :

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

Try:

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


-- 
   Frédéric

--

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