"addClass" util function is adding same CSS class multiple times
mladenplavsic opened this issue · comments
This is visible as you click different "activities" on marker which belongs to multiple categories
In util function addClass (https://github.com/fruskac/map/blob/master/src/js/util.js#L15) there is no check if element has class which is being added.
Perhaps adding function hasClass which can be utilized in other places and which can be use to fix this particular problem?
@dziga That's a good idea! Planning to send a pull request?
Sure, I'll take this one. Good one to start with (setting up env etc.)