mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 01:05:42 +00:00
Merge branch 'development' of gitlab.ub.uni-bielefeld.de:sfb1288inf/opaque into development
This commit is contained in:
commit
43a01b8de6
@ -1,11 +1,11 @@
|
||||
class CorpusList extends List {
|
||||
constructor(idOrElement, options) {
|
||||
constructor(idOrElement, subscriberList, options) {
|
||||
super(idOrElement, options);
|
||||
corporaSubscribers.push(this);
|
||||
subscriberList.push(this);
|
||||
}
|
||||
|
||||
|
||||
_init() {
|
||||
_init(corpora) {
|
||||
for (let [id, corpus] of Object.entries(corpora)) {
|
||||
this.addCorpus(corpus);
|
||||
}
|
||||
|
@ -31,7 +31,7 @@
|
||||
var subscriber;
|
||||
|
||||
corpora = JSON.parse(msg);
|
||||
for (subscriber of corporaSubscribers) {subscriber._init();}
|
||||
for (subscriber of corporaSubscribers) {subscriber._init(corpora);}
|
||||
});
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user