Skip to content

Commit 4aba270

Browse files
committed
clearer comment
1 parent 0023d9f commit 4aba270

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/components/createConnect.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,8 @@ export default function createConnect(React) {
206206
);
207207
}
208208
}
209-
// to prevent breaking ie8
209+
//adding properties in this way
210+
//prevents ie8 from breaking
210211
Connect.displayName = `Connect(${getDisplayName(WrappedComponent)})`;
211212
Connect.WrappedComponent = WrappedComponent;
212213

src/components/createProvider.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,13 @@ export default function createProvider(React) {
9292
return Children.only(children);
9393
}
9494
}
95+
//adding properties in this way
96+
//prevents ie8 from breaking
9597
Provider.childContextTypes = {
9698
store: storeShape.isRequired
9799
};
98100

99-
Provider.propTypes = {
101+
Provider.propTypes = {
100102
store: storeShape.isRequired,
101103
children: (requireFunctionChild ?
102104
PropTypes.func :

0 commit comments

Comments
 (0)