add: yuiDialog.beforeHideEvent.subscribe(ORBEON.xforms.Events.dialogClose, dialog.id); 
context:     _dialog: function(dialog) {        var isModal = ORBEON.util.Dom.hasClass(dialog, "xforms-dialog-modal");        var hasClose = ORBEON.util.Dom.hasClass(dialog, "xforms-dialog-close");        var yuiDialog = new YAHOO.widget.Dialog("myDialog", {            modal: isModal,            close: hasClose,            visible: false,            draggable: true,            fixedcenter: true,            constraintoviewport: true,            underlay: "shadow"        });        yuiDialog.render();        ORBEON.xforms.Globals.dialogs[dialog.id] = yuiDialog;    }
meta: 7801	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7801/ebe4e27a23b69c0e0a71b99c6b3d524d33a6ac96/xforms.js/clean/src/examples/web/ops/javascript/xforms.js