mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 01:10:08 +02:00
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:
parent
c5b0b5c754
commit
a24ad28d75
3 changed files with 7 additions and 7 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue