MCPcopy Create free account
hub / github.com/apache/pouchdb / constructor

Method constructor

lib/index.js:347–357  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

345
346class Changes extends EE {
347 constructor() {
348 super();
349
350 this._listeners = {};
351
352 if (hasLocalStorage()) {
353 addEventListener("storage", (e) => {
354 this.emit(e.key);
355 });
356 }
357 }
358
359 addListener(dbName, id, db, opts) {
360 if (this._listeners[id]) {

Callers

nothing calls this directly

Calls 1

hasLocalStorageFunction · 0.70

Tested by

no test coverage detected