Merge pull request #5371 from Snuffleupagus/disableAutoFetch-regression

Fix disableAutoFetch regression in the generic viewer
This commit is contained in:
Yury Delendik 2014-10-01 16:46:35 -05:00
commit dc30dba760
2 changed files with 2 additions and 1 deletions

View File

@ -138,7 +138,7 @@ var WorkerMessageHandler = PDFJS.WorkerMessageHandler = {
}
},
onProgressiveData: PDFJS.disableStream ? null :
onProgressiveData: source.disableStream ? null :
function onProgressiveData(chunk) {
if (!pdfManager) {
cachedChunks.push(chunk);

View File

@ -1076,6 +1076,7 @@ var WorkerTransport = (function WorkerTransportClosure() {
fetchDocument: function WorkerTransport_fetchDocument(source) {
source.disableAutoFetch = PDFJS.disableAutoFetch;
source.disableStream = PDFJS.disableStream;
source.chunkedViewerLoading = !!this.pdfDataRangeTransport;
this.messageHandler.send('GetDocRequest', {
source: source,