diff --git a/public/scripts/functions.js b/public/scripts/functions.js index 3519d37..ac7f6f4 100644 --- a/public/scripts/functions.js +++ b/public/scripts/functions.js @@ -30,13 +30,13 @@ function prePopulate(honeyCells){ loadImageGroup(urls, function(urlToImageMap) { //all are loaded. draw to canvas here + document.getElementById("honeyComb").innerHTML=""; if( honeyCells.constructor === Array){ for (var i = 0; i < honeyCells.length; i++) { populateHoneycomb( honeyCells[i], i ); }; }else{ - document.getElementById("honeyComb").innerHTML=""; populateHoneycomb( honeyCells , 0); } });