Commit 4752986f authored by Mathieu Giraud's avatar Mathieu Giraud

model.js: loadClusters() works if 'clusters' is not defined

parent 17ae776f
......@@ -607,6 +607,10 @@ Model.prototype = {
},
loadCluster: function (clusters) {
if (typeof (clusters) == 'undefined')
return ;
for (var i = 0; i < clusters.length; i++) {
var new_cluster = [];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment