mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 17:55:37 +02:00
Let the two annotation factories use static methods
This corresponds to how other factories are implemented.
This commit is contained in:
parent
af10f8b586
commit
4f02857394
4 changed files with 48 additions and 53 deletions
|
@ -32,7 +32,7 @@ class AnnotationFactory {
|
|||
* @param {Object} idFactory
|
||||
* @returns {Annotation}
|
||||
*/
|
||||
create(xref, ref, pdfManager, idFactory) {
|
||||
static create(xref, ref, pdfManager, idFactory) {
|
||||
let dict = xref.fetchIfRef(ref);
|
||||
if (!isDict(dict)) {
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue