From 9caedf1aac9b3685cad8439d52f0c628a47979eb Mon Sep 17 00:00:00 2001 From: Logan Hunt Date: Tue, 26 Apr 2022 17:55:35 -0600 Subject: [PATCH] Remove unnecessary function since I changed how some stuff worked --- julia/julia.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/julia/julia.js b/julia/julia.js index 5ac56f1..d5e6bba 100644 --- a/julia/julia.js +++ b/julia/julia.js @@ -46,18 +46,13 @@ const doRender = (renderF, state) => { renderF(state.maxIterations, state.cr, state.ci, state.centerX, state.centerY, state.zoom, state.colorMultipliers); }; -const attachCanvasWithDimension = () => { - render = buildRender(state.width, state.height); - doRender(render, state); - canvasHolder.appendChild(render.canvas); -}; - const loop = () => { const stateChanges = Object.keys(state.changes); if (stateChanges.length > 0) { state = {...state, ...state.changes}; if (state.changes.width || state.changes.height) { - attachCanvasWithDimension(); + render = buildRender(state.width, state.height); + canvasHolder.appendChild(render.canvas); } if (state.changes.ci !== undefined) { document.getElementById("imag-val").innerHTML = state.ci.toFixed(4);