Skip to content
Snippets Groups Projects
Commit 9cb75447 authored by Brandon Bergren's avatar Brandon Bergren
Browse files

I did say it was experimental! :-/

Fix issue when bootstrapping multiple maps, jquery's each was calling the callback with a parameter and it was attempting to use it as a settings array.

Fixed it by isolating the callback.
parent 6fc6d362
No related branches found
No related tags found
No related merge requests found
......@@ -523,5 +523,5 @@ if (Drupal.jsEnabled) {
}
Drupal.behaviors.GMap = function (context) {
$('.gmap-control:not(.gmap-processed)', context).addClass('gmap-processed').each(Drupal.gmap.setup);
$('.gmap-control:not(.gmap-processed)', context).addClass('gmap-processed').each(function () {Drupal.gmap.setup.call(this)});
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment