feat(babel6): Don't use _.clone on Model objects

This commit is contained in:
Evan Morikawa 2016-05-05 15:24:51 -07:00
parent f2d153c87b
commit cc1f6e46dd
2 changed files with 3 additions and 3 deletions

View file

@ -12,11 +12,11 @@ class PreferencesAccountDetails extends Component {
constructor(props) { constructor(props) {
super(props); super(props);
this.state = {account: _.clone(props.account)}; this.state = {account: props.account.clone()};
} }
componentWillReceiveProps(nextProps) { componentWillReceiveProps(nextProps) {
this.setState({account: _.clone(nextProps.account)}); this.setState({account: nextProps.account.clone()});
} }
componentWillUnmount() { componentWillUnmount() {

View file

@ -77,7 +77,7 @@ export default class Account extends ModelWithMetadata {
modelKey: 'syncState', modelKey: 'syncState',
jsonKey: 'sync_state', jsonKey: 'sync_state',
}), }),
}) });
constructor(args) { constructor(args) {
super(args) super(args)