Clean-up, and add JSDocs to, the PDFDocumentProxy.loadingParams method (PR 9830 follow-up)

This commit is contained in:
Jonas Jenwald 2018-06-23 12:33:36 +02:00
parent 34594a5b02
commit 275834ae66

View File

@ -726,6 +726,11 @@ var PDFDocumentProxy = (function PDFDocumentProxyClosure() {
return this.loadingTask.destroy(); return this.loadingTask.destroy();
}, },
/**
* @return {Object} A subset of the current {DocumentInitParameters},
* which are either needed in the viewer and/or whose default values
* may be affected by the `apiCompatibilityParams`.
*/
get loadingParams() { get loadingParams() {
return this.transport.loadingParams; return this.transport.loadingParams;
}, },
@ -2170,8 +2175,6 @@ var WorkerTransport = (function WorkerTransportClosure() {
get loadingParams() { get loadingParams() {
let params = this._params; let params = this._params;
return shadow(this, 'loadingParams', { return shadow(this, 'loadingParams', {
disableRange: params.disableRange,
disableStream: params.disableStream,
disableAutoFetch: params.disableAutoFetch, disableAutoFetch: params.disableAutoFetch,
disableCreateObjectURL: params.disableCreateObjectURL, disableCreateObjectURL: params.disableCreateObjectURL,
disableFontFace: params.disableFontFace, disableFontFace: params.disableFontFace,