If there exist an object of Window, and when close() method is called then window not closes if it is followed by another set of statement. For eg Consider a snippet
var win = new Window('dialog', 'Save As');
saveBtn.onClick = function() {
var fileName = win.prefixEt.text;
var filePath = win.dirEt.text;
win.close() ;
save(layerSetArray,fileName,filePath);
};
There exist two button in this dialog. On click of save button, window not closes till the time it will not execute the save() method as well. But on CS^ version first it closes the window and then execute the save() method. Is this the bug in CC. If yes, then how to resolve this or any work around for the same.