Comparing version 4.8.6 to 4.8.7
@@ -9,16 +9,9 @@ import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; | ||
var windowIsUndefined = !(typeof window !== 'undefined' && window.document && window.document.createElement); | ||
var Portal = function (_React$Component) { | ||
_inherits(Portal, _React$Component); | ||
function Portal(props) { | ||
function Portal() { | ||
_classCallCheck(this, Portal); | ||
var _this = _possibleConstructorReturn(this, (Portal.__proto__ || Object.getPrototypeOf(Portal)).call(this, props)); | ||
if (props.getContainer && !windowIsUndefined) { | ||
_this._container = props.getContainer(); | ||
} | ||
return _this; | ||
return _possibleConstructorReturn(this, (Portal.__proto__ || Object.getPrototypeOf(Portal)).apply(this, arguments)); | ||
} | ||
@@ -29,5 +22,3 @@ | ||
value: function componentDidMount() { | ||
if (!this._container) { | ||
this.createContainer(); | ||
} | ||
this.createContainer(); | ||
} | ||
@@ -34,0 +25,0 @@ }, { |
@@ -37,16 +37,8 @@ 'use strict'; | ||
var windowIsUndefined = !(typeof window !== 'undefined' && window.document && window.document.createElement); | ||
var Portal = function (_React$Component) { | ||
(0, _inherits3['default'])(Portal, _React$Component); | ||
function Portal(props) { | ||
function Portal() { | ||
(0, _classCallCheck3['default'])(this, Portal); | ||
var _this = (0, _possibleConstructorReturn3['default'])(this, (Portal.__proto__ || Object.getPrototypeOf(Portal)).call(this, props)); | ||
if (props.getContainer && !windowIsUndefined) { | ||
_this._container = props.getContainer(); | ||
} | ||
return _this; | ||
return (0, _possibleConstructorReturn3['default'])(this, (Portal.__proto__ || Object.getPrototypeOf(Portal)).apply(this, arguments)); | ||
} | ||
@@ -57,5 +49,3 @@ | ||
value: function componentDidMount() { | ||
if (!this._container) { | ||
this.createContainer(); | ||
} | ||
this.createContainer(); | ||
} | ||
@@ -62,0 +52,0 @@ }, { |
{ | ||
"name": "rc-util", | ||
"version": "4.8.6", | ||
"version": "4.8.7", | ||
"description": "Common Utils For React Component", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
90618
2889