Browse Source

fix

visualizer2
edoardoo 9 years ago
parent
commit
afe1a876c7
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      public/scripts/functions.js

+ 1
- 1
public/scripts/functions.js View File

@ -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);
}
});


Loading…
Cancel
Save