Sha256: cacd3b88fcd275e8db677be72732ac6286e963990d5a9c3a0dddaf774a77cbcf

Contents?: true

Size: 373 Bytes

Versions: 44

Compression:

Stored size: 373 Bytes

Contents

const CONTROLLER_REGISTRY = {};

export default class MapControllerRegistry {
  static getController(mapId) {
    return CONTROLLER_REGISTRY[mapId];
  }

  static setController(mapId, map) {
    CONTROLLER_REGISTRY[mapId] = map;
  }

  static findByMap(map) {
    return Object.values(CONTROLLER_REGISTRY).find((ctrl) => {
      return ctrl.getMap() === map;
    });
  }
}

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
decidim-core-0.26.8 app/packs/src/decidim/map/controller_registry.js
decidim-core-0.27.4 app/packs/src/decidim/map/controller_registry.js
decidim-core-0.27.3 app/packs/src/decidim/map/controller_registry.js
decidim-core-0.26.7 app/packs/src/decidim/map/controller_registry.js
decidim-core-0.26.5 app/packs/src/decidim/map/controller_registry.js
decidim-core-0.27.2 app/packs/src/decidim/map/controller_registry.js
decidim-core-0.27.1 app/packs/src/decidim/map/controller_registry.js
decidim-core-0.26.4 app/packs/src/decidim/map/controller_registry.js
decidim-core-0.27.0 app/packs/src/decidim/map/controller_registry.js
decidim-core-0.26.3 app/packs/src/decidim/map/controller_registry.js
decidim-core-0.27.0.rc2 app/packs/src/decidim/map/controller_registry.js
decidim-core-0.27.0.rc1 app/packs/src/decidim/map/controller_registry.js
decidim-core-0.26.2 app/packs/src/decidim/map/controller_registry.js
decidim-core-0.26.1 app/packs/src/decidim/map/controller_registry.js
decidim-core-0.26.0 app/packs/src/decidim/map/controller_registry.js
decidim-core-0.26.0.rc2 app/packs/src/decidim/map/controller_registry.js
decidim-core-0.26.0.rc1 app/packs/src/decidim/map/controller_registry.js
decidim-core-0.25.2 app/packs/src/decidim/map/controller_registry.js
decidim-core-0.25.1 app/packs/src/decidim/map/controller_registry.js
decidim-core-0.25.0 app/packs/src/decidim/map/controller_registry.js