|
@@ -97,6 +97,15 @@ export function deleteVariable (hash) {
|
|
|
variables.splice(variables.indexOf(variable), 1);
|
|
|
}
|
|
|
|
|
|
+// Deleting all variable
|
|
|
+export function deleteAllVariable () {
|
|
|
+ for (let i = 0; i < variables.length; i++) {
|
|
|
+ document.getElementById(`variable${variables[i].hash}Li`).remove();
|
|
|
+ }
|
|
|
+
|
|
|
+ variables.length = 0
|
|
|
+}
|
|
|
+
|
|
|
// *********************************************************************************
|
|
|
// Util
|
|
|
// *********************************************************************************
|