Showing
2 changed files
with
5 additions
and
4 deletions
@@ -37,7 +37,7 @@ class Overlay { | @@ -37,7 +37,7 @@ class Overlay { | ||
37 | // 初始化参数 | 37 | // 初始化参数 |
38 | this.settings = Object.assign({}, this.defaults, opts); | 38 | this.settings = Object.assign({}, this.defaults, opts); |
39 | 39 | ||
40 | - this.settings.animationClasses = { in : ANIMATIONS[this.settings.animation].in, | 40 | + this.settings.animationClasses = { in: ANIMATIONS[this.settings.animation].in, |
41 | out: ANIMATIONS[this.settings.animation].out | 41 | out: ANIMATIONS[this.settings.animation].out |
42 | }; | 42 | }; |
43 | 43 | ||
@@ -58,7 +58,7 @@ class Overlay { | @@ -58,7 +58,7 @@ class Overlay { | ||
58 | if (this.isVisible) { | 58 | if (this.isVisible) { |
59 | e.preventDefault(); | 59 | e.preventDefault(); |
60 | } | 60 | } |
61 | - }) | 61 | + }); |
62 | } | 62 | } |
63 | 63 | ||
64 | this.elem[0].addEventListener('webkitTransitionEnd', this._cleanup.bind(this)); | 64 | this.elem[0].addEventListener('webkitTransitionEnd', this._cleanup.bind(this)); |
@@ -78,8 +78,8 @@ class Overlay { | @@ -78,8 +78,8 @@ class Overlay { | ||
78 | this.elem.appendTo('body'); | 78 | this.elem.appendTo('body'); |
79 | 79 | ||
80 | this.elem.css({ | 80 | this.elem.css({ |
81 | - visibility: 'visible' | ||
82 | - }).show() | 81 | + visibility: 'visible' |
82 | + }).show() | ||
83 | .removeClass(this.settings.animationClasses.out) | 83 | .removeClass(this.settings.animationClasses.out) |
84 | .addClass(this.settings.animationClasses.in); | 84 | .addClass(this.settings.animationClasses.in); |
85 | 85 |
-
Please register or login to post a comment