Let the two annotation factories use static methods

This corresponds to how other factories are implemented.
This commit is contained in:
Tim van der Meij 2017-08-27 00:30:00 +02:00
parent af10f8b586
commit 4f02857394
No known key found for this signature in database
GPG key ID: 8C3FD2925A5F2762
4 changed files with 48 additions and 53 deletions

View file

@ -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;