MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / _fire

Method _fire

src/common/mapping/WebMapBase.js:741–752  ·  view source on GitHub ↗
(type, params)

Source from the content-addressed store, hash-verified

739 }
740
741 _fire(type, params) {
742 const compatibleTypesList = [
743 ['mapcreatesucceeded', 'addlayerssucceeded'],
744 ['mapcreatefailed', 'getmapfailed'],
745 ['layercreatefailed', 'getlayersfailed']
746 ];
747 const matchTypes = compatibleTypesList.find((list) => list.includes(type));
748 const emitTypes = matchTypes || [type];
749 emitTypes.forEach((item) => {
750 this.fire(item, params);
751 });
752 }
753 };
754}

Callers 8

cleanMethod · 0.95
_initWebMapMethod · 0.95
getMapInfoMethod · 0.95
_createMapMethod · 0.95
constructorMethod · 0.45
constructorMethod · 0.45

Calls 3

forEachMethod · 0.80
findMethod · 0.45
fireMethod · 0.45

Tested by

no test coverage detected