Sequence Diagram: Removed eval from popup handling

This commit is contained in:
Ashish Jain
2021-10-14 21:02:18 +02:00
parent 18ecf479b1
commit 4a50995906
3 changed files with 29 additions and 19 deletions

10
src/interactionDb.js Normal file
View File

@@ -0,0 +1,10 @@
let interactionFunctions = [];
export const addFunction = (func) => {
interactionFunctions.push(func);
};
export const attachFunctions = () => {
interactionFunctions.forEach((f) => {
f();
});
interactionFunctions = [];
};