Remove _isInitialized
This commit is contained in:
parent
e51fd8ea71
commit
22afab2f47
@ -104,7 +104,7 @@ class Popup {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async showContent(elementRect, writingMode, type=null, details=null) {
|
async showContent(elementRect, writingMode, type=null, details=null) {
|
||||||
if (!this._isInitialized()) { return; }
|
if (this._options === null) { throw new Error('Options not assigned'); }
|
||||||
await this._show(elementRect, writingMode);
|
await this._show(elementRect, writingMode);
|
||||||
if (type === null) { return; }
|
if (type === null) { return; }
|
||||||
this._invokeApi('setContent', {type, details});
|
this._invokeApi('setContent', {type, details});
|
||||||
@ -236,10 +236,6 @@ class Popup {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
_isInitialized() {
|
|
||||||
return this._options !== null;
|
|
||||||
}
|
|
||||||
|
|
||||||
async _show(elementRect, writingMode) {
|
async _show(elementRect, writingMode) {
|
||||||
await this._inject();
|
await this._inject();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user