catch one more global var
This commit is contained in:
parent
1deb616942
commit
05e6d7d829
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue