Opened 8 years ago

Last modified 6 years ago

#17790 new defect

Element resize event binding not working in IE 9 and 10 using dojo/on

Reported by: rwadkins Owned by:
Priority: undecided Milestone: 1.15
Component: Events Version: 1.9.3
Keywords: Cc:
Blocked By: Blocking:


Internet Explorer less than 11 (and probably greater than 5) support listening to a resize event on dom elements other than the window object. I was implementing a workaround for browsers that don't support this, when I ran into an issue with dojo/on.

The ability to bind to the resize event to a non-window object is tied to the attachEvent method. It won't work with addEventListener. dojo/on will only use addEventListener if it's available, and I couldn't find a way to tell it not to.

I ended up having to call attachEvent specifically if has("ie") was true. But I would have preferred to have kept everything using dojo/on.

Change History (2)

comment:1 Changed 6 years ago by dylan

Milestone: tbd1.12

Will investigate for Dojo 1.12.

comment:2 Changed 6 years ago by dylan

Milestone: 1.131.15

Ticket planning... move current 1.13 tickets out to 1.15 to make it easier to move tickets into the 1.13 milestone.

Note: See TracTickets for help on using tickets.