How to preserve old content when setting content of ContentPane

Apparently Dojo does some clean-up when setting the content property of a ContentPane. For example: if I set content to widget A, then set content to widget B, widget A's domNode is null'ed out. I'd like to set content back to widget A, but the ContentPane is filled with "undefined" because widget A's domNode was cleaned up.

Any way to prevent the ContentPane's old content from being cleaned up? Or is there a method to swap different widgets in a ContentPane without using setContent() or set('content', ...)?


Use a StackContainer for the content and then add each widget to the stack.

Need Your Help

Firefox doesn't show favicon

html favicon

I created favicon.ico file and declared it in my HTML head tag:

Images for Retina display

iphone xcode retina-display

If i want my application to be compatible with the Retina display, am i obliged to recreate all my images by doubling their sizes? even the icon?