MCPcopy Index your code
hub / github.com/EmulatorJS/EmulatorJS / callEvent

Method callEvent

data/src/emulator.js:412–417  ·  view source on GitHub ↗
(event, data)

Source from the content-addressed store, hash-verified

410 this.functions[event].push(func);
411 }
412 callEvent(event, data) {
413 if (!this.functions) this.functions = {};
414 if (!Array.isArray(this.functions[event])) return 0;
415 this.functions[event].forEach(e => e(data));
416 return this.functions[event].length;
417 }
418 setElements(element) {
419 const game = this.createElement("div");
420 const elem = document.querySelector(element);

Callers 7

createStartButtonMethod · 0.95
startButtonClickedMethod · 0.95
downloadFilesMethod · 0.95
startGameMethod · 0.95
bindListenersMethod · 0.95
createBottomMenuBarMethod · 0.95
saveSaveFilesMethod · 0.80

Calls 1

eFunction · 0.70

Tested by

no test coverage detected