1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Merge pull request #3343 from brendandahl/remove-timeout

Removed unneeded timeout.
This commit is contained in:
Yury Delendik 2013-06-10 12:48:55 -07:00
commit c19f0c4127

View file

@ -351,17 +351,9 @@ var PDFPageProxy = (function PDFPageProxyClosure() {
var self = this;
this.operatorList = operatorList;
var displayContinuation = function pageDisplayContinuation() {
// Always defer call to display() to work around bug in
// Firefox error reporting from XHR callbacks.
setTimeout(function pageSetTimeout() {
self.displayReadyPromise.resolve();
});
};
this.ensureFonts(fonts,
function pageStartRenderingFromOperatorListEnsureFonts() {
displayContinuation();
self.displayReadyPromise.resolve();
}
);
},