Permalink
Browse files

Fix jQuery container rerefence in wpgeo_refreshMapContainer().

  • Loading branch information...
benhuson committed Jun 9, 2015
1 parent e6a935d commit 7296bd051e2570c0507215507e5dd2e2412b2151
Showing with 4 additions and 1 deletion.
  1. +4 −1 js/wp-geo.v3.js
View
@@ -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 ];

0 comments on commit 7296bd0

Please sign in to comment.