| Summary: | Dojo/RUI Widget got JavaScriptGen error when event added | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Xin Wu <cdlwuxin> |
| Component: | EDT | Assignee: | Scott Greer <greer> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | critical | ||
| Priority: | P1 | CC: | cdlwuxin, greer, hjiyong, svihovec |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
Xin Wu
It is a regression bug. Additional information When event added to RUI/Dojo widget, the JSGen got error. I believe this is likely due to a change that Jeff made to support new behaviors in ReorganizeCode in support of appending to arrays. If so, I already have a local fix that I will commit later today. Hi Scott,
I think you're right.
The cause of this problem is that
The "::=" operator is reorganized to "="
You can test your fix with this simple test case.
handler tdd type RUIhandler{ initialUI = [ Button ] }
Button DojoButton{ text = "Button", onClick ::= Button_onClick };
function start()
end
function Button_onClick(event Event in)
syslib.writeStdout("test");
end
end
(In reply to comment #3)
> I believe this is likely due to a change that Jeff made to support new
> behaviors in ReorganizeCode in support of appending to arrays. If so, I
> already have a local fix that I will commit later today.
Justin and I confirmed the "fix" works with a fairly complex app (MortgageCalculator), so I'm committing the change now. Verified in build 20111027 |