Showing
1 changed file
with
1 additions
and
2 deletions
@@ -56,7 +56,6 @@ RConfirm.prototype.constructor = RConfirm; | @@ -56,7 +56,6 @@ RConfirm.prototype.constructor = RConfirm; | ||
56 | exports.RConfirm = RConfirm; | 56 | exports.RConfirm = RConfirm; |
57 | 57 | ||
58 | function RAlert(content, title) { | 58 | function RAlert(content, title) { |
59 | - var that = this; | ||
60 | var rd = new RDialog({ | 59 | var rd = new RDialog({ |
61 | content: content, | 60 | content: content, |
62 | title: title || '提示', | 61 | title: title || '提示', |
@@ -65,7 +64,7 @@ function RAlert(content, title) { | @@ -65,7 +64,7 @@ function RAlert(content, title) { | ||
65 | btnClass: ['alert-sure'], | 64 | btnClass: ['alert-sure'], |
66 | name: '确定', | 65 | name: '确定', |
67 | cb: function() { | 66 | cb: function() { |
68 | - that.close(); | 67 | + rd.close(); |
69 | } | 68 | } |
70 | }] | 69 | }] |
71 | }); | 70 | }); |
-
Please register or login to post a comment