Skip to content

Commit

Permalink
Merge commit '2d08c24512' into 0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
annasob committed Jan 12, 2011
2 parents a0927ee + 2d08c24 commit aabd1f6
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions plugins/googlemap/popcorn.googlemap.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,12 @@ var googleCallback;
options._map.getDiv().style.display = 'block';
// reset the location and zoom just in case the user plaid with the map
options._map.setCenter(options._location);
if ( options.zoom ) {
if ( typeof options.zoom !== "number" ) {
options.zoom = +options.zoom;
}
} else {
options.zoom = 0;

// make sure options.zoom is a number
if ( options.zoom && typeof options.zoom !== "number" ) {
options.zoom = +options.zoom;
}
options.zoom = options.zoom || 0; // default to 0
options._map.setZoom( options.zoom );
}
};
Expand Down

0 comments on commit aabd1f6

Please sign in to comment.