1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Remove the deprecated parameter handling in the render method of the API

This is deprecated since January 2015 with a visible message, so we can
safely remove this now.
This commit is contained in:
Tim van der Meij 2017-10-01 15:01:31 +02:00
parent 50b1a91c02
commit 9b353ef407
No known key found for this signature in database
GPG key ID: 8C3FD2925A5F2762

View file

@ -756,10 +756,6 @@ var PDFDocumentProxy = (function PDFDocumentProxyClosure() {
* just before viewport transform.
* @property {Object} imageLayer - (optional) An object that has beginLayout,
* endLayout and appendImage functions.
* @property {function} continueCallback - (deprecated) A function that will be
* called each time the rendering is paused. To continue
* rendering call the function that is the first argument
* to the callback.
* @property {Object} canvasFactory - (optional) The factory that will be used
* when creating canvases. The default value is
* {DOMCanvasFactory}.
@ -933,12 +929,6 @@ var PDFPageProxy = (function PDFPageProxyClosure() {
intentState.renderTasks.push(internalRenderTask);
var renderTask = internalRenderTask.task;
// Obsolete parameter support
if (params.continueCallback) {
deprecated('render is used with continueCallback parameter');
renderTask.onContinue = params.continueCallback;
}
intentState.displayReadyCapability.promise.then((transparency) => {
if (this.pendingCleanup) {
complete();