Merge pull request #3132 from saebekassebil/issue-3130
Fix issue #3130 by changing a wrong reference of scope
This commit is contained in:
commit
3d3fd46b0c
@ -730,8 +730,8 @@ PdfStreamConverter.prototype = {
|
|||||||
var channel = ioService.newChannel(
|
var channel = ioService.newChannel(
|
||||||
PDF_VIEWER_WEB_PAGE, null, null);
|
PDF_VIEWER_WEB_PAGE, null, null);
|
||||||
|
|
||||||
var self = this;
|
|
||||||
var listener = this.listener;
|
var listener = this.listener;
|
||||||
|
var dataListener = this.dataListener;
|
||||||
// Proxy all the request observer calls, when it gets to onStopRequest
|
// Proxy all the request observer calls, when it gets to onStopRequest
|
||||||
// we can get the dom window. We also intentionally pass on the original
|
// we can get the dom window. We also intentionally pass on the original
|
||||||
// request(aRequest) below so we don't overwrite the original channel and
|
// request(aRequest) below so we don't overwrite the original channel and
|
||||||
@ -759,7 +759,7 @@ PdfStreamConverter.prototype = {
|
|||||||
contentDispositionFilename, aRequest);
|
contentDispositionFilename, aRequest);
|
||||||
} else {
|
} else {
|
||||||
actions = new StandardChromeActions(
|
actions = new StandardChromeActions(
|
||||||
domWindow, contentDispositionFilename, self.dataListener);
|
domWindow, contentDispositionFilename, dataListener);
|
||||||
}
|
}
|
||||||
var requestListener = new RequestListener(actions);
|
var requestListener = new RequestListener(actions);
|
||||||
domWindow.addEventListener(PDFJS_EVENT_ID, function(event) {
|
domWindow.addEventListener(PDFJS_EVENT_ID, function(event) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user