afterUpdate call: fixed undefined opt

This commit is contained in:
nlemoine
2014-01-17 23:10:18 +01:00
parent 9b4a7508f4
commit bf6d19d76d

View File

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