Opened 8 years ago

Closed 4 years ago

#14984 closed defect (fixed)

Standby raises error if target is destroyed in IE9

Reported by: mduggan Owned by: dante
Priority: low Milestone: 1.7.9
Component: DojoX Widgets Version: 1.7.2
Keywords: Cc:
Blocked By: Blocking:

Description

If the target of a dojox.widget.Standby is destroyed via dojo.destroy(), IE9 raises an error then next time the Standby's _size() timeout function is called:

 SCRIPT16389: Unspecified error.
 dom-geometry.js, line 693 character 4

which is where it is calling:

  ret = node.getBoundingClientRect();

Calling standby.hide() also fails for the same reason.

The problem appears to be caused by IE garbage collecting the object even though the Standby still keeps a reference to it. Simply calling removeNode() does not cause the same problem, but .

The attached example works correctly in Chrome 19 and Firefox 10 (the standby disappears as soon as the dom node is destroyed), but fails in IE9.

Attachments (1)

test-standby.html (1.4 KB) - added by mduggan 8 years ago.
simple test page (update: remove some irrelevant bits)

Download all attachments as: .zip

Change History (4)

Changed 8 years ago by mduggan

Attachment: test-standby.html added

simple test page (update: remove some irrelevant bits)

comment:1 Changed 7 years ago by dylan

Milestone: tbd1.9
Priority: undecidedlow
Resolution: patchwelcome
Status: newclosed

We would welcome a patch to fix this. Given the inactivity, I'm closing it out unless a patch is provided.

comment:2 Changed 4 years ago by dylan

Milestone: 1.91.7.9
Resolution: patchwelcome
Status: closedreopened

comment:3 Changed 4 years ago by dylan

Resolution: fixed
Status: reopenedclosed
Note: See TracTickets for help on using tickets.