rc-dialog
Advanced tools
Comparing version 4.3.2 to 4.3.3
@@ -85,11 +85,16 @@ 'use strict'; | ||
var onBeforeClose = this.props.onBeforeClose; | ||
var close = this.close; | ||
if (onBeforeClose) { | ||
if (onBeforeClose.length) { | ||
onBeforeClose(this.close); | ||
onBeforeClose(close); | ||
} else { | ||
onBeforeClose(); | ||
this.close(); | ||
var ret = onBeforeClose(); | ||
if (ret && ret.then) { | ||
ret.then(close); | ||
} else { | ||
close(); | ||
} | ||
} | ||
} else { | ||
this.close(); | ||
close(); | ||
} | ||
@@ -96,0 +101,0 @@ } |
{ | ||
"name": "rc-dialog", | ||
"version": "4.3.2", | ||
"version": "4.3.3", | ||
"description": "dialog ui component for react", | ||
@@ -44,2 +44,3 @@ "keywords": [ | ||
"async": "^0.9.0", | ||
"bluebird": "~2.9.30", | ||
"bootstrap": "^3.3.2", | ||
@@ -46,0 +47,0 @@ "expect.js": "~0.3.1", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25389
667
9