[Laszlo-dev] LzNode.determinePlacement
Jim Grandy
jgrandy at openlaszlo.org
Wed Nov 1 11:36:01 PST 2006
On Nov 1, 2006, at 11:27 AM, P T Withington wrote:
>> But the "args" parameter to determinePlacement is the parameter
>> passed into LzNode.construct. It's just passed through to
>> determinePlacement in case someone wants to grovel through the
>> init args when deciding placement.
>
> Er, we're missing here. args !== arguments. What I wrote:
>
> super.determinePlacement.apply(this, arguments);
>
> is the 'standard' way to invoke the method you overrode with the
> same arguments you were called with. (I.e., it solves Jason's
> problem with having to guess how many arguments you were called with).
>
> The only thing that is stopping us from doing that is that the
> parser will not parse super.x.apply(...) as a super call. I guess
> I should fix that, because it really is the right way to do it.
Yup, you are right. Sorry for the confusion!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20061101/db7b8146/attachment.html
More information about the Laszlo-dev
mailing list