Added 'options' object to the parameters of afterInit and afterUpdate callbacks

This commit is contained in:
Vincent Broute
2013-11-15 19:36:39 +01:00
parent 6a2433bb8f
commit 4c7cb40376
+4 -2
View File
@@ -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");
});
}