mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-19 23:39:50 +02:00
Sequence Diagram: Removed eval from popup handling
This commit is contained in:
10
src/interactionDb.js
Normal file
10
src/interactionDb.js
Normal file
@@ -0,0 +1,10 @@
|
||||
let interactionFunctions = [];
|
||||
export const addFunction = (func) => {
|
||||
interactionFunctions.push(func);
|
||||
};
|
||||
export const attachFunctions = () => {
|
||||
interactionFunctions.forEach((f) => {
|
||||
f();
|
||||
});
|
||||
interactionFunctions = [];
|
||||
};
|
Reference in New Issue
Block a user