[Laszlo-dev] conversion question

P T Withington ptwithy at gmail.com
Tue Apr 1 08:52:52 PDT 2008


I just noticed that the name was never used so I omitted it. It seems  
that sometimes people gave a name when they didnt really need it. (You  
only need the name if you plan to override the method. I think the doc  
explains it pretty well.)

On Apr 1, 2008, at 10:32, Donald Anderson <dda at ddanderson.com> wrote:

> Tucker,
>
> Max gave me this recipe for conversion:
>
>  <method event="foo" args="bar" name="blarg">...</method>    ->
>      <handler name="foo" method="blarg"/><method name="blarg"  
> args="bar">...</method>
>
> For testing, I pulled out the 'before' (r7958) and 'after' (r7959)  
> of your big change
> that affected many files in test/*.lzx , ran the convertor on the  
> 'before', and compared
> with the 'after'.  Everything seems to match up, except test/ 
> doubleclick.lzx
>
> => before/doubleclick.lzx <==
>
>    <method name="setupdbl" event="oninit">
>      this.dblDel = new LzDelegate(this, "clearClicks");
>    </method>
>
> ==> after/doubleclick.lzx <==
>
>    <handler name="oninit">
>      this.dblDel = new LzDelegate(this, "clearClicks");
>    </handler>
>
> ==> converted/doubleclick.lzx <==
>
>    <handler name="oninit" method="setupdbl" /><method name="setupdbl">
>      this.dblDel = new LzDelegate(this, "clearClicks");
>    </method>
>
> My convertor uses the above recipe when there is a name,
> and even in this case when there are no args.  Your conversion
> is simpler.   Does it matter?
>
> Both yours and mine run (as well as the old, with warnings).
>
> Thanks,
>
> - Don
>
> --
>
> Don Anderson
> Java/C/C++, Berkeley DB, systems consultant
>
> voice: 617-547-7881
> email: dda at ddanderson.com
> www: http://www.ddanderson.com
>
>
>
>


More information about the Laszlo-dev mailing list