Opened 11 years ago

Closed 11 years ago

#7226 closed defect (fixed)

context menu item onClick executing twice

Reported by: Douglas Hays Owned by: Douglas Hays
Priority: high Milestone: 1.2
Component: Dijit Version: 1.1.1
Keywords: Cc:
Blocked By: Blocking:

Description

Run test_Menu.html, right click, select Cut. The onClick handler executes twice.

Change History (1)

comment:1 Changed 11 years ago by Douglas Hays

Resolution: fixed
Status: newclosed

(In [14485]) Fixes #7226 !strict. setAttribute('onClick', myfunc) was being called since onClick was in the attributeMap and in the markup (subsequently calling dojo.connect), AND the menu item code was manually calling this.onClick. Changed _Widget.js to not have the lazy connected events in attributeMap, but have a similar but separate object to contain them.

Note: See TracTickets for help on using tickets.