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}
-