You could dispose those dialogs if you need.

Another way would be, to reuse the dialog and just update it.

There is a dialog manager for this purpose, too:


 var buttons = [];
   buttons.push(qx.locale.Manager.tr("OK"));
   buttons.push(qx.locale.Manager.tr("Cancel"));
   var title = "Delete item";
   var text = "Do you want to delete the item?"
   qx.ui.mobile.dialog.Manager.getInstance().confirm(title, text, 
function(index) {
     if (index==1) {
       // delete the item
     }
   }, this, buttons);


Am 29.11.2012 um 10:57 schrieb Franco Gotusso:

Hi, I noted that every time I create a one use dialog like this:

var button = new qx.ui.mobile.form.Button("OK");
var dialog = new qx.ui.mobile.dialog.Dialog(button);
button.addListener("tap",function() {
dialog.hide();
});
dialog.show();

The dialog and the blocker elements are added to the DOM and they're never 
removed. I made some unsuccessful tests and I'm not sure what's the best 
approach to deal with it. Should I dispose it manually? Should I add it as a 
member and handle it in the destruct method? Any other approach?

Thank you.
------------------------------------------------------------------------------
Keep yourself connected to Go Parallel:
VERIFY Test and improve your parallel project with help from experts
and peers. 
http://goparallel.sourceforge.net_______________________________________________
qooxdoo-devel mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

------------------------------------------------------------------------------
Keep yourself connected to Go Parallel: 
VERIFY Test and improve your parallel project with help from experts 
and peers. http://goparallel.sourceforge.net
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to