Allow extensions to define update behavior.

This commit is contained in:
Brian Hung 2020-02-09 00:32:12 -08:00
parent fb147d45f3
commit 17c58c029b

View File

@ -44,6 +44,9 @@ export default class ComponentView {
if (typeof this.extension.setSelection === 'function') {
this.setSelection = this.extension.setSelection
}
if (typeof this.extension.update === 'function') {
this.update = this.extension.update
}
this.vm = new Component({
parent: this.parent,