Files
mermaid/src/interactionDb.js
2021-10-14 21:02:18 +02:00

11 lines
234 B
JavaScript

let interactionFunctions = [];
export const addFunction = (func) => {
interactionFunctions.push(func);
};
export const attachFunctions = () => {
interactionFunctions.forEach((f) => {
f();
});
interactionFunctions = [];
};