Opened 12 years ago
Closed 12 years ago
#8396 closed defect (wontfix)
dojox.gfx: Silverlight renderer throws exception when an event doesn't start with 'on'
Reported by: | Shane O'Sullivan | Owned by: | Eugene Lazutkin |
---|---|---|---|
Priority: | high | Milestone: | tbd |
Component: | DojoX GFX | Version: | 1.2.3 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
While both SVG and VML renderers support event names both with and without the 'on' prefix, e.g. "click" and "onclick", the Silverlight renderer throws an exception if the 'on' prefix is omitted.
E.g.
rect.connect("click", function(){});
throws an exception, and
rect.connect("onclick", function(){});
works. I have attached a file that shows this.
Attachments (2)
Change History (3)
Changed 12 years ago by
Attachment: | TestSilverlightConnectBug.html added |
---|
Changed 12 years ago by
Attachment: | GfxSilverlightConnect.patch added |
---|
Updated patch to fix this issue
comment:1 Changed 12 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
All events should start with "on". It is documented this way.
Note: See
TracTickets for help on using
tickets.
Example file showing the problem