Merge pull request #24 from nlemoine/master

afterUpdate call: fixed undefined opt
This commit is contained in:
Vincent Brouté
2014-01-19 03:21:21 -08:00

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);