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
@ -756,10 +756,6 @@ var PDFDocumentProxy = (function PDFDocumentProxyClosure() {
|
|||||||
* just before viewport transform.
|
* just before viewport transform.
|
||||||
* @property {Object} imageLayer - (optional) An object that has beginLayout,
|
* @property {Object} imageLayer - (optional) An object that has beginLayout,
|
||||||
* endLayout and appendImage functions.
|
* 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
|
* @property {Object} canvasFactory - (optional) The factory that will be used
|
||||||
* when creating canvases. The default value is
|
* when creating canvases. The default value is
|
||||||
* {DOMCanvasFactory}.
|
* {DOMCanvasFactory}.
|
||||||
@ -933,12 +929,6 @@ var PDFPageProxy = (function PDFPageProxyClosure() {
|
|||||||
intentState.renderTasks.push(internalRenderTask);
|
intentState.renderTasks.push(internalRenderTask);
|
||||||
var renderTask = internalRenderTask.task;
|
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) => {
|
intentState.displayReadyCapability.promise.then((transparency) => {
|
||||||
if (this.pendingCleanup) {
|
if (this.pendingCleanup) {
|
||||||
complete();
|
complete();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user