Files
mermaid/src/interactionDb.js
2022-02-10 20:32:21 +01:00

11 lines
234 B
JavaScript

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