Opened 11 years ago

Closed 11 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)

TestSilverlightConnectBug.html (908 bytes) - added by Shane O'Sullivan 11 years ago.
Example file showing the problem
GfxSilverlightConnect.patch (457 bytes) - added by Shane O'Sullivan 11 years ago.
Updated patch to fix this issue

Download all attachments as: .zip

Change History (3)

Changed 11 years ago by Shane O'Sullivan

Example file showing the problem

Changed 11 years ago by Shane O'Sullivan

Attachment: GfxSilverlightConnect.patch added

Updated patch to fix this issue

comment:1 Changed 11 years ago by Eugene Lazutkin

Resolution: wontfix
Status: newclosed

All events should start with "on". It is documented this way.

Note: See TracTickets for help on using tickets.