diff --git a/js/jquery.mapael.js b/js/jquery.mapael.js index f8bc2bc07..fc7dffcff 100644 --- a/js/jquery.mapael.js +++ b/js/jquery.mapael.js @@ -172,7 +172,8 @@ $.fn.mapael.updateElem(elemOptions, plots[id], $tooltip, animDuration); } - opt.afterUpdate && opt.afterUpdate($self, paper, areas, plots, options); + if( typeof opt != 'undefined' ) + opt.afterUpdate && opt.afterUpdate($self, paper, areas, plots, options); }); // Handle resizing of the map @@ -863,4 +864,4 @@ , areas : {} , plots : {} }; -})(jQuery); \ No newline at end of file +})(jQuery);