mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-21 06:53:17 +08:00
11 lines
234 B
JavaScript
11 lines
234 B
JavaScript
let interactionFunctions = [];
|
|
export const addFunction = (func) => {
|
|
interactionFunctions.push(func);
|
|
};
|
|
export const attachFunctions = () => {
|
|
interactionFunctions.forEach((f) => {
|
|
f();
|
|
});
|
|
interactionFunctions = [];
|
|
};
|