Rename BaseViewer._setDocumentViewerElement to BaseViewer._viewerElement

It was pointed out the the old name felt confusing, so let's just rename the getter since it's an internal property anyway.
This commit is contained in:
Jonas Jenwald 2020-03-24 14:12:10 +01:00
parent c5b0b5c754
commit a24ad28d75
3 changed files with 7 additions and 7 deletions

View file

@ -27,12 +27,12 @@ class PDFSinglePageViewer extends BaseViewer {
});
}
get _setDocumentViewerElement() {
get _viewerElement() {
// Since we only want to display *one* page at a time when using the
// `PDFSinglePageViewer`, we cannot append them to the `viewer` DOM element.
// Instead, they are placed in a `DocumentFragment`, and only the current
// page is displayed in the viewer (refer to `this._ensurePageViewVisible`).
return shadow(this, "_setDocumentViewerElement", this._shadowViewer);
return shadow(this, "_viewerElement", this._shadowViewer);
}
_resetView() {