From a08024563dc1fc8a88a4db87211086cab1bf5cd9 Mon Sep 17 00:00:00 2001
From: afc163
Date: Tue, 18 Aug 2015 14:02:55 +0800
Subject: [PATCH] fix code style
---
components/popconfirm/index.jsx | 13 +++++--------
1 file changed, 5 insertions(+), 8 deletions(-)
diff --git a/components/popconfirm/index.jsx b/components/popconfirm/index.jsx
index eb16b1d41..3ad02a4e3 100644
--- a/components/popconfirm/index.jsx
+++ b/components/popconfirm/index.jsx
@@ -13,25 +13,23 @@ export default React.createClass({
transitionName: '',
placement: 'top',
trigger: 'click',
- onConfirm: function () {
- },
- onCancel: function () {
- }
+ onConfirm: function () {},
+ onCancel: function () {}
};
},
- confirm: function () {
+ confirm() {
this.props.onConfirm.call(this);
this.setState({
visible: false
});
},
- cancel: function () {
+ cancel() {
this.props.onCancel.call(this);
this.setState({
visible: false
});
},
- onVisibleChange(v){
+ onVisibleChange(v) {
this.setState({
visible: v
});
@@ -43,7 +41,6 @@ export default React.createClass({
{this.props.title}
-