[Laszlo-dev] Compiler bug
P T Withington
ptw at openlaszlo.org
Fri Jun 2 17:10:58 EDT 2006
Approved.
On 2006-06-02, at 16:14 EDT, Henry Minsky wrote:
> Here's a fix for this bug , for review
>
> Summary: fix for compiler bug with event handlers
>
> New Features:
>
> Bugs Fixed: LPP-2130
>
> Technical Reviewer: ptw
>
> QA Reviewer: mdavis
>
> Doc Reviewer:
>
> Documentation:
>
> Release Notes:
>
> Details:
>
> I had wanted to make it so if you say
>
> <class foo>
> <event name="onbar"/>
> </class>
>
>
> You can then do
>
> <foo onbar="Debug.write('hello! I got an onbar event!')"/>
>
> and the compiler knows that "onbar" needs to be compiled as an
> event handler, by
> setting the attribute type of "onbar" to "EVENT".
>
> But the code I had in the compiler did this for the <handler> tag
> by mistake
> instead of <event>
>
> test case: included in bug, also case above
>
>
>
>
>
>
>
>
> On 6/2/06, Michael Gregor <mgregor at laszlosystems.com> wrote: Members,
>
>
> I have attached a test case that generates a compiler error.
>
> The error is seen in the file 'test_handlerBugWClass.lzx'.
>
> The error is - duplicate definition of attribute .onmousedown
>
> The error does not happen when the same code is not in a class and
> directly on the canvas.
>
> if I change the tag from handler - name to method - event, the error
> goes away.
>
> I will post a bug on JIRA...
>
> thanks,
>
> MG
>
>
> _______________________________________________
> Laszlo-dev mailing list
> Laszlo-dev at openlaszlo.org
> http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
>
>
>
>
>
>
> --
> Henry Minsky
> Software Architect
> hminsky at laszlosystems.com
>
> <changeset-42771.zip>
More information about the Laszlo-dev
mailing list