Opened 9 years ago
Closed 5 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)
Change History (4)
Changed 9 years ago by
Attachment: | test-standby.html added |
---|
comment:1 Changed 8 years ago by
Milestone: | tbd → 1.9 |
---|---|
Priority: | undecided → low |
Resolution: | → patchwelcome |
Status: | new → closed |
We would welcome a patch to fix this. Given the inactivity, I'm closing it out unless a patch is provided.
comment:2 Changed 5 years ago by
Milestone: | 1.9 → 1.7.9 |
---|---|
Resolution: | patchwelcome |
Status: | closed → reopened |
Fixed in the work on #18196
Fix backported to 1.7.9. See https://github.com/dojo/dojox/pull/228 and https://github.com/dojo/dojox/commit/1f353254905cdde92d3cc874dc9239f2d8f6addd for more details.
comment:3 Changed 5 years ago by
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
simple test page (update: remove some irrelevant bits)