Skip to content

Commit

Permalink
replacing prototype.find on lodash find, since it breaks in IE11 !
Browse files Browse the repository at this point in the history
closes gaearon#52
  • Loading branch information
Restuta committed Mar 10, 2016
1 parent 2d79a5b commit e6ce7fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/createClassProxy.js
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 e6ce7fa

Please sign in to comment.