Fixes unnecessary parameter
This commit is contained in:
parent
642fa8d6f8
commit
ce42d3ab5d
|
@ -36,16 +36,14 @@ export default class Overlay{
|
||||||
/**
|
/**
|
||||||
* Constructs the HTML body of the overlay dialog.
|
* Constructs the HTML body of the overlay dialog.
|
||||||
*
|
*
|
||||||
* @param isLightOverlay indicates that this will be a light overlay look
|
|
||||||
* and feel.
|
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
_buildOverlayHtml(isLightOverlay) {
|
_buildOverlayHtml() {
|
||||||
|
|
||||||
let overlayContent = this._buildOverlayContent();
|
let overlayContent = this._buildOverlayContent();
|
||||||
|
|
||||||
let containerClass = isLightOverlay ? "overlay__container-light"
|
let containerClass = this.isLightOverlay ? "overlay__container-light"
|
||||||
: "overlay__container";
|
: "overlay__container";
|
||||||
|
|
||||||
this.$overlay = $(`
|
this.$overlay = $(`
|
||||||
<div class=${containerClass}>
|
<div class=${containerClass}>
|
||||||
|
@ -78,7 +76,7 @@ export default class Overlay{
|
||||||
*/
|
*/
|
||||||
show() {
|
show() {
|
||||||
|
|
||||||
!this.$overlay && this._buildOverlayHtml(this.isLightOverlay);
|
!this.$overlay && this._buildOverlayHtml();
|
||||||
|
|
||||||
if (!this.isVisible()) {
|
if (!this.isVisible()) {
|
||||||
this.$overlay.appendTo('body');
|
this.$overlay.appendTo('body');
|
||||||
|
|
Loading…
Reference in New Issue