catch one more global var

This commit is contained in:
rlx 2011-11-05 17:32:47 +00:00
parent 1deb616942
commit 05e6d7d829

View file

@ -997,7 +997,7 @@ Ox.Map = function(options, self) {
place.south = Ox.limit(place.south, Ox.MIN_LATITUDE, Ox.MAX_LATITUDE - 0.00000001); place.south = Ox.limit(place.south, Ox.MIN_LATITUDE, Ox.MAX_LATITUDE - 0.00000001);
place.north = Ox.limit(place.north, Ox.MIN_LATITUDE + 0.00000001, Ox.MAX_LATITUDE); place.north = Ox.limit(place.north, Ox.MIN_LATITUDE + 0.00000001, Ox.MAX_LATITUDE);
function getCountryCode(components) { function getCountryCode(components) {
countryCode = ''; var countryCode = '';
Ox.forEach(components, function(component) { Ox.forEach(components, function(component) {
if (component.types.indexOf('country') > -1) { if (component.types.indexOf('country') > -1) {
countryCode = component.short_name; countryCode = component.short_name;