Merge pull request #603 from BrianHung/updateExtension

Allow extensions to define update behavior.
This commit is contained in:
Philipp Kühn
2020-04-01 20:27:37 +02:00
committed by GitHub

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,