Remove 'outline' from GetDoc

This commit is contained in:
Jonas Jenwald 2014-05-07 21:06:44 +02:00
parent 68e57f2232
commit 4bfcb27d0b
2 changed files with 24 additions and 11 deletions

View file

@ -293,10 +293,7 @@ var PDFDocumentProxy = (function PDFDocumentProxyClosure() {
* ].
*/
getOutline: function PDFDocumentProxy_getOutline() {
return new Promise(function (resolve) {
var outline = this.pdfInfo.outline;
resolve(outline);
}.bind(this));
return this.transport.getOutline();
},
/**
* @return {Promise} A promise that is resolved with an {Object} that has
@ -1066,6 +1063,16 @@ var WorkerTransport = (function WorkerTransportClosure() {
}.bind(this));
},
getOutline: function WorkerTransport_getOutline() {
return new Promise(function (resolve) {
this.messageHandler.send('GetOutline', null,
function transportOutline(outline) {
resolve(outline);
}
);
}.bind(this));
},
startCleanup: function WorkerTransport_startCleanup() {
this.messageHandler.send('Cleanup', null,
function endCleanup() {