Opened 13 years ago

Closed 12 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 13 years ago by bill

Component: WidgetsDijit
Milestone: 0.9
Owner: changed from bill to mumme

I think in Dijit the contents should actually be loaded when layout() is called.

comment:2 Changed 12 years ago by mumme

Resolution: fixed
Status: newclosed

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.