Make Mixer and Transport subclasses of ChildComponent
This commit is contained in:
Luciano Iam 2020-06-14 13:04:43 +02:00 committed by Robin Gareus
parent d65e1170b9
commit c4ead80613
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
4 changed files with 12 additions and 16 deletions

View file

@ -22,7 +22,7 @@ import Observable from './observable.js';
export class Component extends Observable {
constructor (channel) {
super(null);
super();
this._channel = channel;
}
@ -65,14 +65,10 @@ export class Component extends Observable {
export class ChildComponent extends Component {
constructor (parent) {
super();
super(parent.channel);
this._parent = parent;
}
get channel () {
return this._parent.channel;
}
}
export class AddressableComponent extends ChildComponent {