瀏覽代碼

Fixes unnecessary parameter

master
yanas 8 年之前
父節點
當前提交
ce42d3ab5d
共有 1 個文件被更改,包括 4 次插入6 次删除
  1. 4
    6
      modules/UI/overlay/Overlay.js

+ 4
- 6
modules/UI/overlay/Overlay.js 查看文件

36
     /**
36
     /**
37
      * Constructs the HTML body of the overlay dialog.
37
      * Constructs the HTML body of the overlay dialog.
38
      *
38
      *
39
-     * @param isLightOverlay indicates that this will be a light overlay look
40
-     * and feel.
41
      * @private
39
      * @private
42
      */
40
      */
43
-    _buildOverlayHtml(isLightOverlay) {
41
+    _buildOverlayHtml() {
44
 
42
 
45
         let overlayContent = this._buildOverlayContent();
43
         let overlayContent = this._buildOverlayContent();
46
 
44
 
47
-        let containerClass = isLightOverlay ? "overlay__container-light"
48
-                                            : "overlay__container";
45
+        let containerClass = this.isLightOverlay    ? "overlay__container-light"
46
+                                                    : "overlay__container";
49
 
47
 
50
         this.$overlay = $(`
48
         this.$overlay = $(`
51
             <div class=${containerClass}>
49
             <div class=${containerClass}>
78
      */
76
      */
79
     show() {
77
     show() {
80
 
78
 
81
-        !this.$overlay && this._buildOverlayHtml(this.isLightOverlay);
79
+        !this.$overlay && this._buildOverlayHtml();
82
 
80
 
83
         if (!this.isVisible()) {
81
         if (!this.isVisible()) {
84
             this.$overlay.appendTo('body');
82
             this.$overlay.appendTo('body');

Loading…
取消
儲存