()
| 87984 | } |
| 87985 | var COMPONENT = (0, _constants.PROP_SYMBOLS).COMPONENT, ASYNC_ORIGINAL = (0, _constants.PROP_SYMBOLS).ASYNC_ORIGINAL, ASYNC_RESOLVED = (0, _constants.PROP_SYMBOLS).ASYNC_RESOLVED, ASYNC_DEFAULTS = (0, _constants.PROP_SYMBOLS).ASYNC_DEFAULTS; |
| 87986 | function createProps() { |
| 87987 | var component = this; |
| 87988 | var propsPrototype = getPropsPrototype(component.constructor); |
| 87989 | var propsInstance = Object.create(propsPrototype); |
| 87990 | propsInstance[COMPONENT] = component; |
| 87991 | propsInstance[ASYNC_ORIGINAL] = {}; |
| 87992 | propsInstance[ASYNC_RESOLVED] = {}; |
| 87993 | for(var i = 0; i < arguments.length; ++i){ |
| 87994 | var props = arguments[i]; |
| 87995 | for(var key in props)propsInstance[key] = props[key]; |
| 87996 | } |
| 87997 | Object.freeze(propsInstance); |
| 87998 | return propsInstance; |
| 87999 | } |
| 88000 | function getPropsPrototype(componentClass) { |
| 88001 | var defaultProps = getOwnProperty(componentClass, "_mergedDefaultProps"); |
| 88002 | if (!defaultProps) { |
nothing calls this directly
no test coverage detected