Remove _isInitialized

This commit is contained in:
toasted-nutbread 2019-12-23 16:52:05 -05:00
parent e51fd8ea71
commit 22afab2f47

View File

@ -104,7 +104,7 @@ class Popup {
}
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);
if (type === null) { return; }
this._invokeApi('setContent', {type, details});
@ -236,10 +236,6 @@ class Popup {
});
}
_isInitialized() {
return this._options !== null;
}
async _show(elementRect, writingMode) {
await this._inject();