Skip to content

Commit

Permalink
Merge pull request #77 from Indigo744/patch-ie8-foreach
Browse files Browse the repository at this point in the history
Avoid IE8 js error on map update
  • Loading branch information
neveldo committed Oct 23, 2015
2 parents 31ff7e3 + 4479828 commit 29aacb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/jquery.mapael.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,12 +222,12 @@
, elemOptions = {};

// Reset hidden map elements (when user click on legend elements)
legends.forEach(function(el) {
$.each(legends, function(index, el) {
el.forEach && el.forEach(function(el) {
if(typeof el.hidden != "undefined" && el.hidden == true) {
$(el.node).trigger("click");
}
})
});
});

if (typeof opt != "undefined") {
Expand Down

0 comments on commit 29aacb4

Please sign in to comment.