From bf6d19d76d26c029804e788099d4f245785a5e36 Mon Sep 17 00:00:00 2001 From: nlemoine Date: Fri, 17 Jan 2014 23:10:18 +0100 Subject: [PATCH] afterUpdate call: fixed undefined opt --- js/jquery.mapael.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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);