Remove autobind decorator. Fix bugs in AR view

This commit is contained in:
John Lyon-Smith
2018-05-28 16:12:20 -07:00
parent eb3649547a
commit f07c61c3b5
26 changed files with 1512 additions and 1481 deletions

View File

@@ -1,7 +1,7 @@
import React from "react"
import PropTypes from "prop-types"
import { Header } from "."
import autobind from "autobind-decorator"
import { reactAutoBind } from "auto-bind2"
const headerButtonShape = {
icon: PropTypes.string.isRequired,
@@ -19,6 +19,7 @@ export class BoundHeader extends React.Component {
constructor(props) {
super(props)
reactAutoBind(this)
const { name, binder } = this.props
@@ -26,7 +27,6 @@ export class BoundHeader extends React.Component {
this.state = binder.getBindingState(name)
}
@autobind
updateValue(e) {
this.setState(e.state)
}