File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -205,11 +205,9 @@ export default function createConnect(React) {
205205 ) ;
206206 }
207207 }
208- // adding properties in this way
209- // prevents ie8 from breaking
208+
210209 Connect . displayName = `Connect(${ getDisplayName ( WrappedComponent ) } )` ;
211210 Connect . WrappedComponent = WrappedComponent ;
212-
213211 Connect . contextTypes = {
214212 store : storeShape
215213 } ;
Original file line number Diff line number Diff line change @@ -60,7 +60,6 @@ export default function createProvider(React) {
6060 }
6161
6262 class Provider extends Component {
63-
6463 getChildContext ( ) {
6564 return { store : this . store } ;
6665 }
@@ -92,18 +91,17 @@ export default function createProvider(React) {
9291 return Children . only ( children ) ;
9392 }
9493 }
95- // adding properties in this way
96- // prevents ie8 from breaking
94+
9795 Provider . childContextTypes = {
9896 store : storeShape . isRequired
9997 } ;
100-
10198 Provider . propTypes = {
10299 store : storeShape . isRequired ,
103100 children : ( requireFunctionChild ?
104101 PropTypes . func :
105102 PropTypes . element
106103 ) . isRequired
107104 } ;
105+
108106 return Provider ;
109107}
You can’t perform that action at this time.
0 commit comments