MCPcopy
hub / github.com/pcottle/learnGitBranching / trigger

Method trigger

src/js/git/index.js:2982–2985  ·  view source on GitHub ↗
(eventName, ...args)

Source from the content-addressed store, hash-verified

2980 }
2981
2982 trigger(eventName, ...args) {
2983 var listeners = this._events[eventName];
2984 if (listeners) listeners.forEach(l => l.callback.apply(l.context, args));
2985 }
2986
2987 toJSON() { return Object.assign({}, this.attributes); }
2988

Callers 15

commandSubmittedMethod · 0.45
startLevelMethod · 0.45
clearMethod · 0.45
commands.jsFile · 0.45
index.jsFile · 0.45
fireCommandMethod · 0.45
fireCommandMethod · 0.45
initRootEventsFunction · 0.45
initDemoFunction · 0.45
startOffCommandMethod · 0.45
minimizeGoalMethod · 0.45
showSolutionMethod · 0.45

Calls 1

forEachMethod · 0.80

Tested by

no test coverage detected