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:
parent
50b1a91c02
commit
9b353ef407
1 changed files with 0 additions and 10 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue