WS: make ArdourClient extend Component

This allows the client object to be observed using the on()
method just like with the mixer and transport components,
instead of passing separate callbacks.

See mixer-demo/js/main.js for an example.
This commit is contained in:
Luciano Iam 2020-06-14 12:34:27 +02:00 committed by Robin Gareus
parent 1369076c14
commit d65e1170b9
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
8 changed files with 51 additions and 66 deletions

View file

@ -53,7 +53,7 @@ export default class Plugin extends AddressableComponent {
if (node.startsWith('strip_plugin_param')) {
if (node == StateNode.STRIP_PLUGIN_PARAM_DESCRIPTION) {
this._parameters[addr] = new Parameter(this, addr, val);
this.notify('parameters');
this.notifyPropertyChanged('parameters');
return true;
} else {
if (addr in this._parameters) {