acheven
23 Apr 2007, 6:30 PM
Hi,
What's the correct way to dispose of a dialog box? I created my NewWindow object like this:
MyDialog = function(config)
{
var dialog;
dialog = new Ext.LayoutDialog("hello-dlg", { ...
// initialise dialog
this.dialog = dialog;
};
MyDialog.prototype.show = function()
{
this.dialog.show();
};
Now when i create multiple instances of MyDialog, second and following instances display "broken". i tried something along the lines of objWindow.dialog.dispose() on hide, but this did not seem to work.
Also, is there any reason for ext-yui-adapter.js (1.0 release) to contain this reference?
BLANK_IMAGE_URL:"http:/"+"/extjs.com/s.gif"
What's the correct way to dispose of a dialog box? I created my NewWindow object like this:
MyDialog = function(config)
{
var dialog;
dialog = new Ext.LayoutDialog("hello-dlg", { ...
// initialise dialog
this.dialog = dialog;
};
MyDialog.prototype.show = function()
{
this.dialog.show();
};
Now when i create multiple instances of MyDialog, second and following instances display "broken". i tried something along the lines of objWindow.dialog.dispose() on hide, but this did not seem to work.
Also, is there any reason for ext-yui-adapter.js (1.0 release) to contain this reference?
BLANK_IMAGE_URL:"http:/"+"/extjs.com/s.gif"