mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 17:55:37 +02:00
Fixes this.reject regression
This commit is contained in:
parent
c6d201b13b
commit
e612da2c3d
1 changed files with 1 additions and 1 deletions
|
@ -1112,7 +1112,7 @@ var RenderTask = (function RenderTaskClosure() {
|
||||||
*/
|
*/
|
||||||
cancel: function RenderTask_cancel() {
|
cancel: function RenderTask_cancel() {
|
||||||
this.internalRenderTask.cancel();
|
this.internalRenderTask.cancel();
|
||||||
this.reject(new Error('Rendering is cancelled'));
|
this.promise.reject(new Error('Rendering is cancelled'));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue