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

Method on

test/tool/mock_l7.js:39–42  ·  view source on GitHub ↗
(type, cb)

Source from the content-addressed store, hash-verified

37 }
38
39 on(type, cb) {
40 this.stacks[type] = this.stacks[type] || [];
41 this.stacks[type].push(cb);
42 }
43 emit(type) {
44 this.stacks[type]?.forEach((cb) => {
45 cb();

Callers 15

VideoMapSpec.jsFile · 0.45
WebMapV2Spec.jsFile · 0.45
callbackFunction · 0.45
WebMapSpec.jsFile · 0.45
WebMapV3Spec.jsFile · 0.45
WebMapV22Spec.jsFile · 0.45
MapExtendSpec.jsFile · 0.45
DeckglLayerSpec.jsFile · 0.45
L7LayerSpec.jsFile · 0.45

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected