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.props.annotation !== next.annotation) {
|
||||
const widgetEl = this.props.widget({
|
||||
annotation: this.props.annotation,
|
||||
readOnly: this.props.readOnly,
|
||||
onAppendBody: body => this.props.onAppendBody(body),
|
||||
onUpdateBody: (previous, updated) => this.props.onUpdateBody(previous, updated),
|
||||
onRemoveBody: body => this.props.onRemoveBody(body),
|
||||
onSaveAndClose: () => this.props.onSaveAndClose()
|
||||
annotation: next.annotation,
|
||||
readOnly: next.readOnly,
|
||||
onAppendBody: body => next.onAppendBody(body),
|
||||
onUpdateBody: (previous, updated) => next.onUpdateBody(previous, updated),
|
||||
onRemoveBody: body => next.onRemoveBody(body),
|
||||
onSaveAndClose: () => next.onSaveAndClose()
|
||||
});
|
||||
|
||||
// Delete previous rendered state
|
||||
|
|
Loading…
Reference in New Issue