Only update the Document Properties if the dialog is still visible when the dataAvailablePromise is resolved

This commit is contained in:
Jonas Jenwald 2014-04-02 11:55:35 +02:00
parent c7a0b68d9a
commit edfc78dfe7

View File

@ -74,6 +74,11 @@ var DocumentProperties = {
},
getProperties: function documentPropertiesGetProperties() {
if (!this.visible) {
// If the dialog was closed before dataAvailablePromise was resolved,
// don't bother updating the properties.
return;
}
// Get the file name.
this.fileName = getPDFFileNameFromURL(PDFView.url);