Skip to content

Commit

Permalink
Style tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon committed Oct 5, 2015
1 parent 441c359 commit f7c9ac1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 1 addition & 3 deletions src/components/createConnect.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,11 +205,9 @@ export default function createConnect(React) {
);
}
}
// adding properties in this way
// prevents ie8 from breaking

Connect.displayName = `Connect(${getDisplayName(WrappedComponent)})`;
Connect.WrappedComponent = WrappedComponent;

Connect.contextTypes = {
store: storeShape
};
Expand Down
6 changes: 2 additions & 4 deletions src/components/createProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ export default function createProvider(React) {
}

class Provider extends Component {

getChildContext() {
return { store: this.store };
}
Expand Down Expand Up @@ -92,18 +91,17 @@ export default function createProvider(React) {
return Children.only(children);
}
}
// adding properties in this way
// prevents ie8 from breaking

Provider.childContextTypes = {
store: storeShape.isRequired
};

Provider.propTypes = {
store: storeShape.isRequired,
children: (requireFunctionChild ?
PropTypes.func :
PropTypes.element
).isRequired
};

return Provider;
}

0 comments on commit f7c9ac1

Please sign in to comment.