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
commit 6d9c878b46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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,