Convert the annotation layer builder to ES6 syntax

This commit is contained in:
Tim van der Meij 2017-04-23 20:52:58 +02:00
parent 99d35a1039
commit 3554a93c2b
No known key found for this signature in database
GPG key ID: 8C3FD2925A5F2762
2 changed files with 53 additions and 72 deletions

View file

@ -108,14 +108,13 @@ IPDFTextLayerFactory.prototype = {
/**
* @interface
*/
function IPDFAnnotationLayerFactory() {}
IPDFAnnotationLayerFactory.prototype = {
class IPDFAnnotationLayerFactory { // eslint-disable-line no-unused-vars
/**
* @param {HTMLDivElement} pageDiv
* @param {PDFPage} pdfPage
* @param {boolean} renderInteractiveForms
* @returns {AnnotationLayerBuilder}
*/
createAnnotationLayerBuilder: function (pageDiv, pdfPage,
renderInteractiveForms) {}
};
createAnnotationLayerBuilder(pageDiv, pdfPage,
renderInteractiveForms = false) {}
}