mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +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() {
|
||||
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