Opened 16 years ago
Last modified 11 years ago
#2056 closed defect
js error when using a menu2 inside a content pane — at Initial Version
Reported by: | Owned by: | bill | |
---|---|---|---|
Priority: | high | Milestone: | 1.6 |
Component: | Dijit | Version: | 0.4 |
Keywords: | Cc: | ben hockey | |
Blocked By: | Blocking: |
Description
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.
repro case, place in tests/widget