mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-25 09:38:06 +02:00
Refactors MessageHandler.send to remove callbacks
This commit is contained in:
parent
6ea118b8d7
commit
2008f74185
5 changed files with 147 additions and 166 deletions
|
@ -214,7 +214,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
|
|||
then(function(imageObj) {
|
||||
var imgData = imageObj.createImageData(/* forceRGBA = */ false);
|
||||
self.handler.send('obj', [objId, self.pageIndex, 'Image', imgData],
|
||||
null, [imgData.data.buffer]);
|
||||
[imgData.data.buffer]);
|
||||
}).then(null, function (reason) {
|
||||
warn('Unable to decode image: ' + reason);
|
||||
self.handler.send('obj', [objId, self.pageIndex, 'Image', null]);
|
||||
|
@ -1592,7 +1592,7 @@ var OperatorList = (function OperatorListClosure() {
|
|||
},
|
||||
pageIndex: this.pageIndex,
|
||||
intent: this.intent
|
||||
}, null, transfers);
|
||||
}, transfers);
|
||||
this.dependencies = {};
|
||||
this.fnArray.length = 0;
|
||||
this.argsArray.length = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue