Skip to content

Commit

Permalink
Fix jQuery container rerefence in wpgeo_refreshMapContainer().
Browse files Browse the repository at this point in the history
  • Loading branch information
benhuson committed Jun 11, 2015
1 parent e6a935d commit 7296bd0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/wp-geo.v3.js
Expand Up @@ -9,11 +9,14 @@
/**
* Refresh Map Container
*
* This function can be used to refresh a map that has been previously
* hidden - for example in a hidden tab.
*
* @param obj container Map container jQuery object.
*/
function wpgeo_refreshMapContainer( container ) {

jQuery( container ).each( function() {
container.each( function() {

var map_id = jQuery( this ).attr( 'id' );
var map = window[ map_id ];
Expand Down

0 comments on commit 7296bd0

Please sign in to comment.