From b189749b4a86e1655668a1eb900d0888fe692198 Mon Sep 17 00:00:00 2001 From: Brendan Dahl Date: Thu, 6 Jun 2013 09:16:28 -0700 Subject: [PATCH] Removed unneeded timeout. --- src/api.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/api.js b/src/api.js index 91e771a5d..228a69b9c 100644 --- a/src/api.js +++ b/src/api.js @@ -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(); } ); },