Cleanup
This commit is contained in:
parent
31a2d13cdb
commit
26ee0d7868
|
@ -11,12 +11,12 @@ export default class DOMWidget extends Component {
|
||||||
if (this.element.current) {
|
if (this.element.current) {
|
||||||
if (this.props.annotation !== next.annotation) {
|
if (this.props.annotation !== next.annotation) {
|
||||||
const widgetEl = this.props.widget({
|
const widgetEl = this.props.widget({
|
||||||
annotation: this.props.annotation,
|
annotation: next.annotation,
|
||||||
readOnly: this.props.readOnly,
|
readOnly: next.readOnly,
|
||||||
onAppendBody: body => this.props.onAppendBody(body),
|
onAppendBody: body => next.onAppendBody(body),
|
||||||
onUpdateBody: (previous, updated) => this.props.onUpdateBody(previous, updated),
|
onUpdateBody: (previous, updated) => next.onUpdateBody(previous, updated),
|
||||||
onRemoveBody: body => this.props.onRemoveBody(body),
|
onRemoveBody: body => next.onRemoveBody(body),
|
||||||
onSaveAndClose: () => this.props.onSaveAndClose()
|
onSaveAndClose: () => next.onSaveAndClose()
|
||||||
});
|
});
|
||||||
|
|
||||||
// Delete previous rendered state
|
// Delete previous rendered state
|
||||||
|
|
Loading…
Reference in New Issue