
webapp.js.Observable.mjs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of corese-server Show documentation
Show all versions of corese-server Show documentation
Corese is a Semantic Web Factory (triple store and SPARQL endpoint) implementing RDF, RDFS, SPARQL 1.1
Query and Update.
The newest version!
export class Observable {
constructor() {
this.observers = new Set();
}
addObserver(o) {
if (! this.observers.has(o)) {
this.observers.add(o);
}
}
notififyObservers() {
this.observers.forEach(
o => o.update( this, undefined)
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy