Merge branch 'development' of gitlab.ub.uni-bielefeld.de:sfb1288inf/opaque into development

This commit is contained in:
Stephan Porada 2019-09-18 12:07:06 +02:00
commit 43a01b8de6
3 changed files with 5 additions and 5 deletions

View File

@ -1,11 +1,11 @@
class CorpusList extends List { class CorpusList extends List {
constructor(idOrElement, options) { constructor(idOrElement, subscriberList, options) {
super(idOrElement, options); super(idOrElement, options);
corporaSubscribers.push(this); subscriberList.push(this);
} }
_init() { _init(corpora) {
for (let [id, corpus] of Object.entries(corpora)) { for (let [id, corpus] of Object.entries(corpora)) {
this.addCorpus(corpus); this.addCorpus(corpus);
} }

View File

@ -31,7 +31,7 @@
var subscriber; var subscriber;
corpora = JSON.parse(msg); corpora = JSON.parse(msg);
for (subscriber of corporaSubscribers) {subscriber._init();} for (subscriber of corporaSubscribers) {subscriber._init(corpora);}
}); });