History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: LPP-2130
Type: Bug Bug
Status: Verified Verified
Resolution: Fixed
Priority: P1 P1
Assignee: Frisco Del Rosario
Reporter: Michael Gregor
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
OpenLaszlo

compiler chokes on multiple handlers for the same event and different references

Created: 02/Jun/06 01:07 PM   Updated: 02/Aug/06 06:01 PM
Component/s: Compiler
Affects Version/s: 3.2cr3
Fix Version/s: 3.4

Time Tracking:
Not Specified

File Attachments: 1. Zip Archive compilerHandlerBug.zip (1.0 kb)


Severity: Blocker
Fixed in Change#: 1,272
Runtime: N/A
Flags: Products
Fix in hand: False


 Description  « Hide
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.

see attached test case.

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Henry Minsky - 02/Jun/06 04:07 PM
Bug is in ClassCompiler, when it sees a HANDLER tag it adds it as an attribute of type script, but it should be
doing that for EVENT tags instead, so you can say

<class foo>
   <event name="onbar"/>
</class>

<foo onbar="Debug.write('hello! I got an onbar event!'):/>


Henry Minsky - 03/Jun/06 03:51 PM
fixed by changeset 42793 in lps-legals

needs to be integrated to some release branch if anyone wants to see it anytime soon


Amy Muntz - 05/Jun/06 12:06 PM
Jim - please merge Henry's fix and assign to qa for verification. Thanks.

Amy Muntz - 05/Jun/06 12:07 PM
Re-opening until fix is merged.

Jim Grandy - 07/Jul/06 01:27 PM
Rescheduling to 3.4.

Jim Grandy - 07/Jul/06 01:29 PM
Checked into openlaszlo/trunk as r1272