Showing
1 changed file
with
5 additions
and
5 deletions
@@ -68,7 +68,7 @@ function Dialog(options) { | @@ -68,7 +68,7 @@ function Dialog(options) { | ||
68 | var that = this, | 68 | var that = this, |
69 | i; | 69 | i; |
70 | 70 | ||
71 | - //实现继承时,只返回实例,不生成html | 71 | + // 实现继承时,只返回实例,不生成html |
72 | if (opt.inherit) { | 72 | if (opt.inherit) { |
73 | return this; | 73 | return this; |
74 | } | 74 | } |
@@ -90,7 +90,7 @@ function Dialog(options) { | @@ -90,7 +90,7 @@ function Dialog(options) { | ||
90 | } | 90 | } |
91 | } | 91 | } |
92 | 92 | ||
93 | - //绑定x关闭事件 | 93 | + // 绑定x关闭事件 |
94 | that.$el.find('.close').click(function() { | 94 | that.$el.find('.close').click(function() { |
95 | that.close(); | 95 | that.close(); |
96 | if (options.refreshOnClose) { | 96 | if (options.refreshOnClose) { |
@@ -98,7 +98,7 @@ function Dialog(options) { | @@ -98,7 +98,7 @@ function Dialog(options) { | ||
98 | } | 98 | } |
99 | }); | 99 | }); |
100 | 100 | ||
101 | - //绑定btn关闭事件 | 101 | + // 绑定btn关闭事件 |
102 | that.$el.find('.btn-close').click(function() { | 102 | that.$el.find('.btn-close').click(function() { |
103 | that.close(); | 103 | that.close(); |
104 | }); | 104 | }); |
@@ -109,8 +109,8 @@ function Dialog(options) { | @@ -109,8 +109,8 @@ function Dialog(options) { | ||
109 | }); | 109 | }); |
110 | } | 110 | } |
111 | 111 | ||
112 | - //绑定按钮事件 | ||
113 | - if (!!opt.btns) { | 112 | + // 绑定按钮事件 |
113 | + if (!opt.btns) { | ||
114 | for (i = 0; i < opt.btns.length; i++) { | 114 | for (i = 0; i < opt.btns.length; i++) { |
115 | bindBtnEvt(i); | 115 | bindBtnEvt(i); |
116 | } | 116 | } |
-
Please register or login to post a comment