MCPcopy Create free account
hub / github.com/SuperMap/iClient-JavaScript / emit

Method emit

test/tool/mock_l7.js:43–47  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

41 this.stacks[type].push(cb);
42 }
43 emit(type) {
44 this.stacks[type]?.forEach((cb) => {
45 cb();
46 });
47 }
48}
49const event = new Event();
50class Scene {

Callers 5

addLayerMethod · 0.45
setDataMethod · 0.45
aFunction · 0.45
aFunction · 0.45

Calls 2

forEachMethod · 0.80
cbFunction · 0.50

Tested by

no test coverage detected