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

> I played a bit and your solution is giving me
> INT:2
>
> I implemented this now.
>
> var C = Class.create({
>    initialize:function() {
>      alert("ext: " + arguments.length)
>       b.apply(arguments);
>    },
>     b:function() {
>       alert("int: " + arguments[0].length)  ;<<<<<<<<<<<<<<<<<<<
>     }
> });
>
> which is giving correct INT / EXT values.
>
> It seems to me a bit overcomplicated.. is this the right way ?
>
> Can you please explain what would do the 'this' as you were
> suggesting ? I guess that there is something I am missing in the big
> picture...

I'm new to Prototype, so I'll let gurus explain the details ;o)
This is the solution I got for my Signal class, some days ago (see  
T.J. Crowder answer on 07/12/2009 for my post named 'Custom signal').

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


Reply via email to