DHTMLX close

Hi,

I have written an even on close in javscript following is the code.



dhxWins.attachEvent(“onClose”, function(win) {

        win.hide();

        win.setModal(false);

        // some other things;

        

});





My question is that as i have overriden the close even so i am using hide to hide the window not closing it. Can please tell me how to close window in this situation.


Hello,


you can use close method


win.close();