mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 16:24:57 +01:00
parent
d65e1170b9
commit
c4ead80613
4 changed files with 12 additions and 16 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue