fix a bug in Ox.Geo
This commit is contained in:
parent
4c2d873c97
commit
0ee6acef28
1 changed files with 2 additions and 2 deletions
|
@ -164,9 +164,9 @@ Ox.load.Geo = function(options, callback) {
|
||||||
language = language
|
language = language
|
||||||
.replace(' languages', '')
|
.replace(' languages', '')
|
||||||
.replace(' Sign Language', '');
|
.replace(' Sign Language', '');
|
||||||
var country = '', code;
|
var country, code;
|
||||||
Ox.COUNTRIES.forEach(function(c) {
|
Ox.COUNTRIES.forEach(function(c) {
|
||||||
if (c.languages.indexOf(language) > -1) {
|
if (c.languages && c.languages.indexOf(language) > -1) {
|
||||||
country = c;
|
country = c;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue