Ticket #2056 (new defect)
ContentPane: Menu inside ContentPane not cleaned up on ContentPane destroy or reload.
| Reported by: | gbettencourt@… | Owned by: | bill |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.0 |
| Component: | Dijit | Version: | 0.4 |
| Severity: | normal | Keywords: | |
| Cc: |
Description (last modified by bill) (diff)
Only occurs in IE ( I'm using IE7 ), reproduced with 0.4.1rc2 also.
The attached page has a two content panes, one which has a button to load a new page into the second pane. The page initially loaded by the pane contains a menu widget. After loading another page which does not contain a menu widget, clicking anywhere on the page will result in a "offsetWidth is null or not an object" js error. This only occurs if the new page does not have a menu, loading a new page with a menu works fine.
I also ran into another bug while creating this repro case, in dom.js dojo.dom.destroyNode does node.outerHTML= to prevent a memory leak. In my repro case, node can be undefined. We should insure that node is not undefined before trying to clear the outerHTML.