Catch double destroy on escape.

This commit is contained in:
Thomas Tanghus 2013-06-03 03:19:35 +02:00
parent afd723fdcd
commit 5f1cbc6a1a

View file

@ -129,7 +129,9 @@ var OCdialogs = {
modal: modal,
buttons: buttonlist,
close: function(event, ui) {
self.$filePicker.ocdialog('destroy').remove();
try {
$(this).ocdialog('destroy').remove();
} catch(e) {}
self.$filePicker = null;
}
});