From 4c7cb40376f2df1a040adfd144de8eeea391383e Mon Sep 17 00:00:00 2001 From: Vincent Broute Date: Fri, 15 Nov 2013 19:36:39 +0100 Subject: [PATCH] Added 'options' object to the parameters of afterInit and afterUpdate callbacks --- js/jquery.mapael.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/js/jquery.mapael.js b/js/jquery.mapael.js index 3f2621a32..d5a1dfa09 100644 --- a/js/jquery.mapael.js +++ b/js/jquery.mapael.js @@ -172,7 +172,7 @@ $.fn.mapael.updateElem(elemOptions, plots[id], $tooltip, animDuration); } - opt.afterUpdate && opt.afterUpdate($self, paper, areas, plots); + opt.afterUpdate && opt.afterUpdate($self, paper, areas, plots, options); }); // Handle resizing of the map @@ -205,7 +205,7 @@ } // Hook that allows to add custom processing on the map - options.map.afterInit && options.map.afterInit($self, paper, areas, plots); + options.map.afterInit && options.map.afterInit($self, paper, areas, plots, options); $(paper.desc).append(" and Mapael (http://neveldo.fr/mapael)"); }); @@ -477,6 +477,8 @@ } } return false; + }).on("scroll", function(e) { + console.log("test"); }); }