mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Merge pull request #4158 from timvandermeij/fix-promise-regression
Fixes this.reject regression
This commit is contained in:
commit
3aeab0f0cb
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