Allow extensions to define update behavior.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user