File tree 2 files changed +3
-7
lines changed
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) {
205
205
) ;
206
206
}
207
207
}
208
- // adding properties in this way
209
- // prevents ie8 from breaking
208
+
210
209
Connect . displayName = `Connect(${ getDisplayName ( WrappedComponent ) } )` ;
211
210
Connect . WrappedComponent = WrappedComponent ;
212
-
213
211
Connect . contextTypes = {
214
212
store : storeShape
215
213
} ;
Original file line number Diff line number Diff line change @@ -60,7 +60,6 @@ export default function createProvider(React) {
60
60
}
61
61
62
62
class Provider extends Component {
63
-
64
63
getChildContext ( ) {
65
64
return { store : this . store } ;
66
65
}
@@ -92,18 +91,17 @@ export default function createProvider(React) {
92
91
return Children . only ( children ) ;
93
92
}
94
93
}
95
- // adding properties in this way
96
- // prevents ie8 from breaking
94
+
97
95
Provider . childContextTypes = {
98
96
store : storeShape . isRequired
99
97
} ;
100
-
101
98
Provider . propTypes = {
102
99
store : storeShape . isRequired ,
103
100
children : ( requireFunctionChild ?
104
101
PropTypes . func :
105
102
PropTypes . element
106
103
) . isRequired
107
104
} ;
105
+
108
106
return Provider ;
109
107
}
You can’t perform that action at this time.
0 commit comments