Opened 14 years ago
Closed 14 years ago
#2397 closed defect (fixed)
The ContentPane loadContents executes twice.
Reported by: | guest | Owned by: | mumme |
---|---|---|---|
Priority: | high | Milestone: | 0.9 |
Component: | Dijit | Version: | 0.4.1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
When creating a ContentPane? (FloatingPane? for example) giving an external href-url, the loadContents function is called twice. The execution happens in both 'show' and 'postCreate' functions.
Seems like there is something weird in the postCreate logic; the contents are loaded even if 'this.isShowing' is true. Quick fix for us was to invert that boolean.
Change History (2)
comment:1 Changed 14 years ago by
Component: | Widgets → Dijit |
---|---|
Milestone: | → 0.9 |
Owner: | changed from bill to mumme |
comment:2 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
The 0.9 dijit ContentPane? doesn't have onShow and initial load is triggered by startup not postCreate.
And from what I can see It doesn't download twice. Marking as fixed
Note: See
TracTickets for help on using
tickets.
I think in Dijit the contents should actually be loaded when layout() is called.