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.29.1 app/packs/src/decidim/map/controller_registry.js
decidim-core-0.28.4 app/packs/src/decidim/map/controller_registry.js
decidim-core-0.27.9 app/packs/src/decidim/map/controller_registry.js
decidim-core-0.29.0 app/packs/src/decidim/map/controller_registry.js
decidim-core-0.28.3 app/packs/src/decidim/map/controller_registry.js
decidim-core-0.27.8 app/packs/src/decidim/map/controller_registry.js
decidim-core-0.29.0.rc4 app/packs/src/decidim/map/controller_registry.js
decidim-core-0.29.0.rc3 app/packs/src/decidim/map/controller_registry.js
decidim-core-0.29.0.rc2 app/packs/src/decidim/map/controller_registry.js
decidim-core-0.29.0.rc1 app/packs/src/decidim/map/controller_registry.js
decidim-core-0.28.2 app/packs/src/decidim/map/controller_registry.js
decidim-core-0.27.7 app/packs/src/decidim/map/controller_registry.js
decidim-core-0.28.1 app/packs/src/decidim/map/controller_registry.js
decidim-core-0.27.6 app/packs/src/decidim/map/controller_registry.js
decidim-core-0.26.10 app/packs/src/decidim/map/controller_registry.js
decidim-core-0.26.9 app/packs/src/decidim/map/controller_registry.js
decidim-core-0.28.0 app/packs/src/decidim/map/controller_registry.js
decidim-core-0.27.5 app/packs/src/decidim/map/controller_registry.js
decidim-core-0.28.0.rc5 app/packs/src/decidim/map/controller_registry.js
decidim-core-0.28.0.rc4 app/packs/src/decidim/map/controller_registry.js