Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixes #75 addMarkers method should work without seriesData provided

  • Loading branch information...
commit 7b67203cc2bce299cd545a45b8756e4d60166f05 1 parent 0541d6a
@bjornd authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  lib/world-map.js
View
2  lib/world-map.js
@@ -676,6 +676,8 @@ jvm.WorldMap.prototype = {
addMarkers: function(markers, seriesData){
var i;
+ seriesData = seriesData || [];
+
this.createMarkers(markers);
for (i = 0; i < seriesData.length; i++) {
this.series.markers[i].setValues(seriesData[i] || {});
Please sign in to comment.
Something went wrong with that request. Please try again.