Removed unneeded timeout.

This commit is contained in:
Brendan Dahl 2013-06-06 09:16:28 -07:00
parent ccdff648f1
commit b189749b4a

View File

@ -350,17 +350,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();
}
);
},