Skip to content

Commit

Permalink
Merge pull request #53 from Restuta/patch-1
Browse files Browse the repository at this point in the history
replacing prototype.find on lodash find, since it breaks in IE11 !
  • Loading branch information
gaearon committed Mar 10, 2016
2 parents 2d79a5b + e6ce7fa commit eda9ebc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/createClassProxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function isEqualDescriptor(a, b) {
// https://github.com/gaearon/react-proxy/issues/50#issuecomment-192928066
let allProxies = [];
function findProxy(Component) {
const pair = allProxies.find(([key]) => key === Component);
const pair = find(allProxies, ([key]) => key === Component);
return pair ? pair[1] : null;
}
function addProxy(Component, proxy) {
Expand Down

0 comments on commit eda9ebc

Please sign in to comment.