Skip to content
This repository has been archived by the owner on Jul 16, 2020. It is now read-only.

Commit

Permalink
Object.assign errors
Browse files Browse the repository at this point in the history
  • Loading branch information
adjohu committed Sep 4, 2015
1 parent ff451b2 commit e6e27a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"babel": "^5.8.23"
},
"dependencies": {
"lodash": "^3.10.1",
"react": "^0.13.3"
}
}
3 changes: 2 additions & 1 deletion src/react-error-suppression.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';
import {merge} from 'lodash';

let errorLogging = false;

Expand All @@ -21,7 +22,7 @@ class WrappedComponent extends React.Component {
}
}

const ReactWithErrorSuppression = Object.assign({} , React, {
const ReactWithErrorSuppression = merge({} , React, {
Component: WrappedComponent,
enableErrorLogging() {
errorLogging = true;
Expand Down

0 comments on commit e6e27a7

Please sign in to comment.