WS: improve Observable implementation

This commit is contained in:
Luciano Iam 2020-06-14 12:18:21 +02:00 committed by Robin Gareus
parent 842b989e19
commit 1369076c14
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
5 changed files with 28 additions and 25 deletions

View file

@ -84,7 +84,7 @@ export default class Strip extends AddressableComponent {
if (node.startsWith('strip_plugin')) {
if (node == StateNode.STRIP_PLUGIN_DESCRIPTION) {
this._plugins[addr] = new Plugin(this, addr, val);
this.notifyObservers('plugins');
this.notify('plugins');
return true;
} else {
const pluginAddr = [addr[0], addr[1]];