Change spec policy for getDefaultProps to SpecPolicy.DEFINE_MANY_MERGED

This will allow multiple mixins for a component to define
getDefaultProps and their values will be merged.

See also:
https://groups.google.com/d/msg/reactjs/UzSiXw2Vo5s/FxK7AHWOzLMJ
This commit is contained in:
Daniel Miladinov
2013-09-25 23:52:29 -04:00
parent 848a8e1180
commit b0ae800d64
+1 -1
View File
@@ -110,7 +110,7 @@ var ReactCompositeComponentInterface = {
* @return {object}
* @optional
*/
getDefaultProps: SpecPolicy.DEFINE_ONCE,
getDefaultProps: SpecPolicy.DEFINE_MANY_MERGED,
/**
* Invoked once before the component is mounted. The return value will be used