Skip to content

Commit f7c9ac1

Browse files
committed
Style tweaks
1 parent 441c359 commit f7c9ac1

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

src/components/createConnect.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff 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
};

src/components/createProvider.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)