Browse Source

tweak code style

pull/21/head
afc163 10 years ago
parent
commit
81ee5588bc
  1. 4
      components/modal/confirm.jsx

4
components/modal/confirm.jsx

@ -21,7 +21,7 @@ module.exports = function (props) {
function onCancel() {
var cancelFn = props.onCancel;
if (cancelFn) {
if(cancelFn.length){
if(cancelFn.length) {
cancelFn(close);
}else {
cancelFn();
@ -35,7 +35,7 @@ module.exports = function (props) {
function onOk() {
var okFn = props.onOk;
if (okFn) {
if(okFn.length){
if(okFn.length) {
okFn(close);
}else {
okFn();

Loading…
Cancel
Save