File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -206,7 +206,8 @@ export default function createConnect(React) {
206
206
) ;
207
207
}
208
208
}
209
- // to prevent breaking ie8
209
+ //adding properties in this way
210
+ //prevents ie8 from breaking
210
211
Connect . displayName = `Connect(${ getDisplayName ( WrappedComponent ) } )` ;
211
212
Connect . WrappedComponent = WrappedComponent ;
212
213
Original file line number Diff line number Diff line change @@ -92,11 +92,13 @@ export default function createProvider(React) {
92
92
return Children . only ( children ) ;
93
93
}
94
94
}
95
+ //adding properties in this way
96
+ //prevents ie8 from breaking
95
97
Provider . childContextTypes = {
96
98
store : storeShape . isRequired
97
99
} ;
98
100
99
- Provider . propTypes = {
101
+ Provider . propTypes = {
100
102
store : storeShape . isRequired ,
101
103
children : ( requireFunctionChild ?
102
104
PropTypes . func :
You can’t perform that action at this time.
0 commit comments