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!
|
- Re: [Laszlo-dev] LzNode.determinePlacement Jim Grandy
-